I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.
ls -l `find Test/ -perm /u=x,g=x,o=x -type f`
Is this a good/right/quick command or not?
My solution is:
find Test/ -executable -type f -exec ls -l {} \;
and got the same result as warl0ck and pradeepchhetri offered.
find ... -exec -ls -l {} \+instead of\;- doing that will cause only onelscommand to be generated with multiple filename args, similar to howxargsworks. read thefindman page and search for-execfor details.