On Thu, 23 Jun 2011 18:00:57 +0200, Emanuel Rumpf wrote
> 2011/6/23 S C Rigler <riglersc@email-addr-hidden>:
>
> > ...
> > Grep is fully capably capable of matching lines directly from the file
> > so you don't need anything piping the file to it. ...
>
> Now, what if the file is compressed ?
>
> There is
> bzless config.tar.bz2 | grep PREEMT*
>
> would that somehow work pipeless ?
bzgrep?
> > $ less config-2.6.39.1 | grep PREEMPT
>
> It's also possible with the angle bracket
> <config.txt grep PREEMT*
>
> BUT: I really would NOT recommend that.
> If you accidentally reverse the bracket (>), you've lost....
So why do you even mention it?
But the most important point is: _don't_ use 'less' on places other than
the end of a pipe! Less is a pager whose task is to pretty-print streams
so they are human readable. Less _does_ possible modify the stream. I'll
escape transmogrify certain control characters. If you try to use zless/grep
to search for a control sequence you might be up for a surprise ...
Cheers, RalfD
> --
> E.R.
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user
-- R. Mattes - Hochschule fuer Musik Freiburg rm@email-addr-hidden-freiburg.de _______________________________________________ Linux-audio-user mailing list Linux-audio-user@email-addr-hidden http://lists.linuxaudio.org/listinfo/linux-audio-userReceived on Thu Jun 23 20:15:08 2011
This archive was generated by hypermail 2.1.8 : Thu Jun 23 2011 - 20:15:08 EEST