On Thu, 13 Nov 2003 12:48:59 -0500, John McKowen Taylor, Jr. wrote > > Subject: > > grep fn.1.gz > > From: > > "Mike Vanecek" <rh_list@xxxxxxxxxxxxx> > > Date: > > Thu, 13 Nov 2003 10:54:55 -0600 > > To: > > "redhat_list" <redhat-list@xxxxxxxxxx> > > > > > > Dumb question time ... One can do a less fn.1.gz directly. I would like to be > > able to grep or egrep pattern fn.1.gz in the same manner. Does an easy way > > exist to do that? My approach of using gunzip seems rather awkward and I just > > wondered if a easier way existed? > > > > Thanks. > > "grep -F fn.1.gz" will do what you want. > > If you find yourself doing this a lot, > you might want to alias grep to "grep -F". > > Beware that this deactivates ALL of the RE magic, > you can't even use ^ and $ anchors. -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by new- lines, any of which is to be matched. -P, --perl-regexp Inter- pret PATTERN as a Perl regular expression. John, thanks, but I could not get that to work. Another posted suggested zgrep which was exactly what I needed. -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list