bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request for zgrep


From: Van Snyder
Subject: Feature request for zgrep
Date: Thu, 19 Jul 2012 13:19:02 -0700

In addition to zgrep, we need bzgrep.

I suggest looking at `basename $0` to decide whether to use gzip or
bzip2 at line 149, using a variable set earlier:


unzipper=gzip
unzipper_options=-cdfq

case `basename $0` in
  (bzgrep)
    unzipper=bzip2;;
  (Zgrep*)
    unzipper=zcat
    unzipper_options=;;
esac

...

($unzipper $unzipper_options ....)

-- 
Van Snyder                    |  What fraction of Americans believe 
address@hidden       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]