Re: [PLUG] Bash Scripting Question

2010-09-17 Thread Josh Cady
Thanks for the help. The "find . -executable -exec '{}' \;" works well. On Fri, Sep 17, 2010 at 8:31 AM, Fred James wrote: > wes wrote: >> yes, but wouldn't it be easier to do that with just find? >> >> find . -executable -exec {} \; >> >> -wes >> >> On Fri, Sep 17, 2010 at 7:36 AM, Josh Cady

Re: [PLUG] Bash Scripting Question

2010-09-17 Thread Fred James
wes wrote: > yes, but wouldn't it be easier to do that with just find? > > find . -executable -exec {} \; > > -wes > > On Fri, Sep 17, 2010 at 7:36 AM, Josh Cady wrote: > > >> Probably a stupid question, but if one wanted to find all files with >> execute bits set in a folder (find . -executabl

Re: [PLUG] Bash Scripting Question

2010-09-17 Thread Paul Heinlein
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

Re: [PLUG] Bash Scripting Question

2010-09-17 Thread wes
yes, but wouldn't it be easier to do that with just find? find . -executable -exec {} \; -wes On Fri, Sep 17, 2010 at 7:36 AM, 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, a

[PLUG] Bash Scripting Question

2010-09-17 Thread Josh Cady
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? ___ PLUG mailing l