Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2003 13:45:37 +0200
From:      "Michal F. Hanula" <frankie@kyblik.pieskovisko.sk>
To:        questions@freebsd.org
Subject:   Re: simple sh scripting. How to put a result of a command to a variable?
Message-ID:  <20030812114537.GA80378@kyblik.pieskovisko.sk>
In-Reply-To: <3F3815F5.5070302@obfuscated.net>
References:  <3F380F5D.6020904@rbcmail.ru> <3F3815F5.5070302@obfuscated.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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?

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/ONNh4PY2BaN84VwRAuP/AJoD4+jRAFkOTrUT+lY5ociIdV95MwCdHOrR
t2Hl7JayQPMGV9wi7NiVPs4=
=AY/S
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030812114537.GA80378>