On Fri, 17 May 2002, at 7:55am, Ken Ambrose wrote: > Unfortunately, it takes each seperate "word" as a different paramater. I > -know- I've done this before, but I just can't remember how. Suggestions?
Place variables which may contain shell special characters in "double quotes", i.e., for i in * ; do foo "$i" ; echo "$i is done" ; done Also, be aware of the "-print0" switch to "find", and the "-0" switch of "xargs", which lets you do things like: find -iname "*.jpg" -print0 | xargs -0 foo (Note, that 0 is digit zero, not letter O.) -- Ben Scott <[EMAIL PROTECTED]> | The opinions expressed in this message are those of the author and do not | | necessarily represent the views or policy of any other person, entity or | | organization. All information is provided without warranty of any kind. | ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************