Moving Files (Again)

Kevin D. Clark kclark at CetaceanNetworks.com
Wed Jan 8 08:31:36 EST 2003


Bob Bell <bobbell at zk3.dec.com> writes:

>     I forget if you are one of the ones who considers spaces "stange
> characters", but that general method breaks with filenames with spaces.
> I general find that instead of:
>
> for foo in `find blah`; do
>     # do stuff
> done
>
> the following is typically more reliable:
>
> find blah | while read foo; do
>     # do stuff
> done

Yeah, you're right.  The method that you describe is preferable.

(my fingers generally produce my "for" loop without involving my brain
-- maybe I should re-train my fingers...)

Thanks for pointing this out,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list