[KLUG Members] awk help

Peter Buxton members@kalamazoolinux.org
Wed, 14 Aug 2002 14:21:17 -0400


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 14, 2002 at 02:02:08PM -0400, John Pesce wrote:

> ls -1 *.zip | awk '{print "unzip "$1}' | sh
>=20
> 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'

$ touch "file file" ; ls -1Q file* | awk '{print "ls -l "$0}' | sh


--=20
http://killdevil.ath.cx/~peter (/gpg.html)
How many times have I flirted with what I thought was
a guy but was actually a girl with poor fashion sense?

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Wp+daAK8ZwqLoskRAnVeAKCINwJj2cu0l0NbJwYNkBGcJ0SzJQCdEOkx
hehuk/A9s10f+yYeljsCLfA=
=NUgy
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--