On Thu, Oct 30, 2008 at 5:40 PM, <[EMAIL PROTECTED]> wrote:

> On Fri, Oct 31, 2008 at 08:20:40AM +0930, Iain Buchanan wrote:
>
> > less /usr/share/doc/libxcb/manual/blah.doc.bz2
> > cat /usr/share/doc/libxcb/manual/blah.doc.bz2 | bzip2 -d
> > cp /usr/share/doc/libxcb/manual/blah.doc.bz2 ~/; bzip2 -d ~/blah.doc.bz2
>
> and grep?

You don't need bzgrep or what ever....just bzcat /ab/def/sd/blah.bz2 | grep
yay

Or if you want to use the cases above, a "| grep yay" should be more than
enough...plus you get the colors in the results.

It does get a little annoying when you want to use grep for all files in the
directory, but nothing a little for loop cannot fix:

for i in /path/to/dir/*; do echo $i; bzcat $i | grep yay; done

>
>
> --
>            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
>     Felix Finch: scarecrow repairman & rocket surgeon / [EMAIL PROTECTED]
>  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license
> #4933
> I've found a solution to Fermat's Last Theorem but I see I've run out of
> room o
>
>

Reply via email to