Re: Bash scripts and multi-word filenames

2006-08-05 Thread John O'Hagan
Thanks for these replies: three different solutions (so far), all of which work! John -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Bash scripts and multi-word filenames

2006-08-05 Thread Beat Seeliger
On Sat, Aug 05, 2006 at 03:45:26PM +1000, John O'Hagan wrote: > Hi, > > I keep running into this particular gap in my scripting, and hope someone can > clear it up for me. > > FILES=$( ls SOMEWHERE ) #or find or grep, etc > > for FILE in $FILES; do SOMETHING; done > > I often find that if

Re: Bash scripts and multi-word filenames

2006-08-05 Thread Vincent Lefevre
On 2006-08-05 15:45:26 +1000, John O'Hagan wrote: > FILES=$( ls SOMEWHERE ) #or find or grep, etc > > for FILE in $FILES; do SOMETHING; done > > I often find that if there are spaces in the names of anything in > $FILES, the execution of SOMETHING occurs separately for each word > in the name, p

Re: Bash scripts and multi-word filenames

2006-08-05 Thread Mumia W.
On 08/05/2006 12:45 AM, John O'Hagan wrote: Hi, I keep running into this particular gap in my scripting, and hope someone can clear it up for me. FILES=$( ls SOMEWHERE ) #or find or grep, etc for FILE in $FILES; do SOMETHING; done I often find that if there are spaces in the names of any

Re: Bash scripts and multi-word filenames

2006-08-04 Thread Kevin Mark
On Sat, Aug 05, 2006 at 03:45:26PM +1000, John O'Hagan wrote: > Hi, > > I keep running into this particular gap in my scripting, and hope someone can > clear it up for me. > > FILES=$( ls SOMEWHERE ) #or find or grep, etc > > for FILE in $FILES; do SOMETHING; done > > I often find that if

Bash scripts and multi-word filenames

2006-08-04 Thread John O'Hagan
Hi, I keep running into this particular gap in my scripting, and hope someone can clear it up for me. FILES=$( ls SOMEWHERE ) #or find or grep, etc for FILE in $FILES; do SOMETHING; done I often find that if there are spaces in the names of anything in $FILES, the execution of SOMETHING o