simple sh scripting. How to put a result of a command to a variable?

Michal F. Hanula frankie at kyblik.pieskovisko.sk
Tue Aug 12 04:45:42 PDT 2003


On Mon, Aug 11, 2003 at 06:17:25PM -0400, Michael Conlen wrote:
> #!/bin/sh
> for i in `ls *.zip`
Useless use of backticks --- what about
for i in *.zip
?
> do
>    unzip ${i} -d ${i}.unzipped
> done

-- 
What do you care what other people think?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030812/cf113c5c/attachment.bin


More information about the freebsd-questions mailing list