Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '(z)less is more' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
(z)less is more
Authored by: ashevin on May 15, '02 10:24:08AM

Or you can use zless. It\'s a better pager than more, and it allows searching. I would still use the zcat <log> | grep <pattern> if I only wanted to see parts of the log. Using zless though, you can check the context if required. Also, use less as the pager in general. In this case less is more!

- Avi



[ Reply to This | # ]
(z)less is more
Authored by: patashnik on May 16, '02 05:26:36AM
For the more adventurous, read the manualpage for less (man less), and search for LESSOPEN; less can be made to open the most exotic filetypes, if you're willing to make a script which can translate those filetypes to plain text.

My lessopen-script (a Perl-script, in fact) can open things like HTML (by rendering the HTML to text with 'links'), PDF (pdftotext), all sorts of compressed files, archives, you name it. It can even retrieve urls with a commandline similar to:
less http://www.macosxhints.com/.

Indeed, less is superior to more :)

[ Reply to This | # ]