On Fri, 17 Sep 2010, Josh Cady wrote:

> Probably a stupid question, but if one wanted to find all files with
> execute bits set in a folder (find . -executable), and then execute
> them, all within a bash script, is there a simple "for files in *"
> loop that would accomplish this?

for F in *; do
   test -x "$F" && "./$F"
done

-- 
Paul Heinlein <> [email protected] <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to