[KLUG Members] awk help

John Pesce members@kalamazoolinux.org
Wed, 14 Aug 2002 14:02:08 -0400 (EDT)


Hi,

I don't use scripts often, but I do use awk for some things like file
management. I get zipped files of data of the form Syydddhh.zip and
ussually do
ls -1 *.zip | awk '{print "unzip "$1}' | sh

but the files from 2000 look like S 012310.zip
how can I print the ' around the filename so sh will work?
unzip 'S 012310.zip'