in reply to archives etc
Putting that in front of your main loop means your while (<ARGV>) loop can process gzip files transparently.foreach (@ARGV) { if ($_=~/\.z$/) { $_="gunzip -c $_ |"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: archives etc
by eserte (Deacon) on Apr 21, 2004 at 13:01 UTC | |
|
Re: Re: archives etc
by CassJ (Sexton) on Apr 21, 2004 at 11:53 UTC |