1837294 Members
3050 Online
110115 Solutions
New Discussion

more or less

 
CPHVF-U Guard
Advisor

more or less

If I use less instead of more when I search in a text file I get highlighting words. How do I get these features when I use more. ??

Brgds
Jan
5 REPLIES 5
Michael Tully
Honored Contributor

Re: more or less

Hi,

I've never used 'less', but you could have a look at this offering from the porting centre.

http://hpux.connect.org.uk/hppd/hpux/Users/more-1.32/readme.html

-Michael
Anyone for a Mutiny ?
Deepak Extross
Honored Contributor

Re: more or less

'less' has more and better features than 'more'.
Reverse Scrolling after searching for a pattern, for example.
You may not be able to find an equivalent in 'more' for every feature that 'less' offers.
Why use 'more' when you can use 'less'? :-)
Michael Tully
Honored Contributor

Re: more or less

I remember an old saying about this:

less is more and more is less.....
Anyone for a Mutiny ?
H.Merijn Brand (procura
Honored Contributor

Re: more or less

More recent versions of less support PCRE!

If you recompile less yourself, and choose to use PCRE (Perl Compatible Regular Expressions), something you have installed on your system - and if not, do so yesterday :) - Perl's regex power lays at your feet in less.

PCRE: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-3.9.tar.gz
less: ftp://ftp.gnu.org/gnu/less/less-374.tar.gz
Enjoy, Have FUN! H.Merijn
Roger Baptiste
Honored Contributor

Re: more or less



You get more features by using less, whereas you get less features by using more.

HTH ;-)
-raj
Take it easy.