scripting

Bennett Todd bet at rahul.net
Sun Jul 11 18:41:21 PDT 2004


2004-07-11T17:02:02 Ian Molton:
> for i in file\ 1 file\ 2 ; do <foo> ; done

As others said, quoting. You quoted the args into the for loop, now
you need to quote 'em in the body where you use 'em.

for i in file\ 1 file\ 2; do mv "$i" `echo $i|tr -d ' '`; done

-Bennett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-chat/attachments/20040712/9bd32787/attachment.sig>


More information about the lfs-chat mailing list