Linux Commands Examples

A great documentation place for Linux commands

zless

file perusal filter for crt viewing of compressed text


see also : zmore - less

Synopsis

zless [ name ... ]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
settitle unisonmanual
exec zless /usr/share/doc/unison*/unison-manual.txt.gz
0
source
            
echo $f
zless $f | head -n $nlines | column -t | less -N -S
0
source
            
echo $f
zless $f | tail -n $nlines | column -t | less -N -S

description

Zless is a filter which allows examination of compressed or plain text files one screenful at a time on a soft-copy terminal. It is the equivalent of setting the environment variable LESSOPEN to ’|gzip -cdfq -- %s’, and the environment variable LESSMETACHARS to ’<space><tab><newline>;*?"()<>[|&^’#\$%=~’, and then running less. However, enough people seem to think that having the command zless available is important to be worth providing it.

copyright notice

Copyright © 2006, 2007 Free Software Foundation, Inc.
Copyright © 1992, 1993 Jean-loup Gailly

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation.


bugs

Zless does not work with compressed data that is piped to it via standard input; it requires that input files be specified as arguments. To read compressed data from a pipe, you can use ...|gunzip|less instead of ...|zless.


see also

zmore , less

How can this site be more helpful to YOU ?


give  feedback