<br><div><span class="gmail_quote">On 3/1/06, <b class="gmail_sendername">Paul Howarth</b> <<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2006-03-01 at 16:38 -0500, Michael Wiktowy wrote:<br>> #!/bin/bash<br>> find $* -print0 | xargs -0 -I % command_to_iterate_over %<br><br>Try "$@" instead of $*<br><br>Paul.</blockquote><div><br><br>
I knew there was something obvious that I was missing.<br><br>The following:<br>#!/bin/bash<br>find "$@" -print0 | xargs -0 -I % command_to_iterate_over %</div><br>Does exactly what I needed when calling it with unquoted but properly escaped argument like:
<br>./script /path/to/filenames\ with\ spaces* /other/path\ with\ spaces/to\ other\ filenames\ with\ spaces*<br><br>It doesn't work with quoted command-line parameters with wildcards in them but that's OK to me. I will have to experiment a bit more with that and put $@ in my mental toolbox.
<br><br>Thank you kindly, Paul and Robert! <br><br>/Mike<br></div>