[Xastir] Installing Tiger2008 maps
Jason KG4WSV
kg4wsv at gmail.com
Mon May 3 23:08:52 EDT 2010
On Mon, May 3, 2010 at 10:01 PM, Brett Friermood
<brett.friermood at gmail.com> wrote:
> I run the command:
>
> for i in 'find . -name "*.zip"'; do unzip -d 'dirname $i' $i;done;
>
> I get the error message:
>
> unzip: cannot find or open find, find.zip or find.ZIP.
at a guess, you typed the command and used single quotes where you
should have used back quotes (aka back tick, which is on the ~ key on
the laptop i'm now typing on).
try for i in $(find . -name "*.zip"); do unzip -d $(dirname $i) $i;done;
Not only is the $(cmd) construct clearer than `cmd`, it's also nestable.
-Jason
kg4wsv
More information about the Xastir
mailing list