Issue
I just search (recursively) for all shell scripts within a folder:
$ find * | ag "\.sh\b"
Now how do I make them executable, like
$ (lambda file_list: chmod +x file_list) (find * | ag "\.sh\b")
Sorry for this weird Python/Shell pseudo-code, I don't know another way to convey it concisely.
Solution
Check Command Substitution.
Embed a command within backquotes to make it an argument for another command:
$ chmod +x `find * | ag "\.sh\b"`
Answered By - Rahn