lesspipe.sh is an input filter for the pager less as described in less's man page. The script runs under a ksh-compatible shell (ksh, bash, zsh) and allows you to use less to view files with binary content, compressed files, archives, and files contained in archives. Viewing files by accessing a device file is implemented to some extent (DOS filesystems and tar files). It supports many formats (both as plain and compressed files using compress, gzip, bzip2, or zip). Syntax highlighting for many languages is available through a helper script, "code2color".
| Tags | Text Processing |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX |
| Implementation | Unix Shell |
Recent releases


Release Notes: Files ending in .xml will no longer be (incorrectly) interpreted as HTML files. Proper options for the file command are now chosen at runtime to guess the character encoding of files. This is used to optionally display recoded file contents. When syntax highlighting is used within lesspipe.sh, colored ls output now works on more OS flavours. A sample wrapper function for less is provided to allow directly opening URLs by simply calling 'less <URL>'.


Release Notes: This release checks for an appropriate shell at runtime. The configure script was modified to do better checks for good 'tar' and 'file' commands. The amount of filtering in lesspipe.sh can be controlled if support for the ENV variable LESS_ADVANCED_PREPROCESSOR was included at configure time. The handling of that variable has been changed from the previous version. Several tests were changed to better detect compressed files. The documentation has been updated.


Release Notes: lesspipe now checks for helper applications at runtime. The configure script was enhanced to allow for tailoring the number of filters included in lesspipe.sh. As a configurable option, the amount of filtering in lesspipe.sh can now be controlled by the ENV variable LESS_ADVANCED_PREPROCESSOR. Support for the xz compression method was added. The documentation has been cleaned up and minor bugs (mostly for Mac OS X) have been corrected.


Release Notes: A major restructuring of the lesspipe code took place. Support for even more file types has been added (e.g. jar and lzip). The test suite was enhanced, several bugs were fixed, and the code was cleaned up. The documentation has been updated.


Release Notes: lesspipe now comes with improved UTF-8 support. It will automatically convert the display between UTF-8 and ISO-8859-1 charsets, depending on the LANG environment variable. The handling of 7-zip files has been improved and lzma compressed files are now recognized. The documentation and code has been cleaned up and minor bugs have been corrected.