5 Dec
2005
5 Dec
'05
06:05
On Sat, 2005-12-03 at 17:28, John Summerfield wrote:
Jim Cunning wrote:
On Sat, 2005-12-03 at 10:10, Lawrence Bowie wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
for i in `ls -1 *.rar`; do unrar x $i; done (assumes BASH)
or
ls -1 *.rar | xargs -i unrar x {}
Two things: 1. Your example won't work using "ls -l" -- you only want the filenames.
2. Please don't top-post.
Two things 1. Get new specs 2. Check your facts:-)
My apologies for mistaking "1" for "l". FYI: Unless you have "-C" set in your LS_OPTIONS environment variable, ls will default to single column output to a pipeline as in your example, making "-1" unnecessary. Thanks for not top-posting. ;-) -- Jim Cunning <jcunning@cunning.ods.org>