Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 1:05 PM Will Maier wrote: On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote: [...] Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the first space. Is it possible to get 'i' to represent the whole string that 'find' returns? If so, how?

Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 12:52 PM David Kirchner wrote: On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "

Re: Help With 'for' Loop

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote: [...] > Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping > at the first space. Is it possible to get 'i' to represent the > whole string that 'find' returns? If so, how? Bourne-style for loops use as the delimiter b

Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen
Drew Tomlinson wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' retur

Re: Help With 'for' Loop

2005-10-14 Thread David Kirchner
On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: > Sorry to be such a pest today. I'm working on a sh script that uses a > for loop. To test, I've written the following: > > for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname > "*.gif" -print` > do > echo

Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen
Drew Tomlinson wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' retur

Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' returns is "/multimedia/Pict