finding tensai's brilliance

Corey Edwards tensai at zmonkey.org
Wed Jul 27 11:28:44 MDT 2005


On Wed, 2005-07-27 at 11:07 -0600, Stuart Jansen wrote:
> It's an age old problem, writing shell loops that deal well with
> filenames containing spaces. Sometime within the last few months, tensai
> mentioned a brilliant method using read in a bash loop. I thought it was
> here on the Plug list, but I guess it was on #utah. I'm sure I'll make
> the mistake again, so I'm archiving the knowledge here for everyone to
> enjoy. (And if you didn't notice, I also threw in a bunch of keywords
> for good luck.)
> 
> Without further delay, I give you the evidence of tensai's brilliance:
> 
> find /tmp/ -type f | while read I; do echo $I; done

Must...not...correct...error in my favor...

Oh, I can't do it. Hans found the solution, not me.

        http://hans.fugal.net/blog/linux/find_while_read.html

Corey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20050727/03a1085c/attachment.bin 


More information about the PLUG mailing list