[Novalug] need grep help

William Sutton william@trilug.org
Fri Mar 16 16:30:30 EDT 2012


for some reason I thought in modern Linuxes, more was just a renamed 
version of the current less, which leads to the following quote,

"less is more, more or less."

William Sutton

On Fri, 16 Mar 2012, James Ewing Cottrell 3rd wrote:

> On 3/16/2012 11:14 AM, Christopher Garrity wrote:
>> cat file | grep -v ^\# | less # is more
>>
> There are certain idioms that keep cropping up, refusing to die.
>
> There is no reason for the cat...simply move the file to grep:
>
> grep -v ^# file | less
>
> Also, within less, you can do: /!^#
> to search for the next line which isn't a comment, and then keep using n.
>
> JIM
>
> P.S. Actually, these days, the source code for more is an old version of
> less.
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>



More information about the Novalug mailing list