Hi, forget zless and the like, standard less can do that and much more automagically.
The package less provides the program /usr/bin/lesspipe. It sets the environment variables LESSOPEN and LESSCLOSE, which cause less to preprocess the file before opening it. This way, you can not only look at gzipped files, but also have at look at tar'd files, rpms, debs, ... Simply add eval $(/usr/bin/lesspipe) to your shell startup script. Also take a look at the less manpage, specifically section INPUT PREPROCESSOR and NATIONAL CHARACTER SETS. HTH, Viktor -- Viktor Rosenfeld WWW: http://www.informatik.hu-berlin.de/~rosenfel/
pgpKpIa2d9Crq.pgp
Description: PGP signature