scripting

Dan Osterrath Dan.Osterrath at gmx.de
Sun Jul 11 10:09:43 PDT 2004


Am Sonntag, 11. Juli 2004 19:02 schrieb Ian Molton:
> How does one do this
>
> for i in a b c d e ; do <foo ; done
>
> when the a, b, c, d, or e have spaces in them ?
>
> ie.
>
> for i in file\ 1 file\ 2 ; do <foo> ; done

Quoting?

for i in "file 1" "file 2" ; echo $i ; done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-chat/attachments/20040711/589c0937/attachment.sig>


More information about the lfs-chat mailing list