Get, a preprocessor for less at GitHub

About me
My attempt to store and visualize GraviTrax tracks

Scientific Linux Quickref

lesspipe.tar.gz(this site)

lesspipe Archive

Displaying more with less is an input filter for the pager less as described in less's man page. The script runs as a bash or zsh script and allows you to view files with binary content, compressed files, archives and files contained in archives. It supports many formats (both as plain and compressed files using gzip, bzip2 and other pack programs).
Details can be found in the file.

Syntax highlighting of source code is possible through several programs such as bat, pygmentize or source-highlight. The included scripts code2color and vimcolor are also usable derived from older programs found in the internet and tailored for the use within lesspipe.

Syntax highlighting and other methods of colorizing the output are only activated if the environment variable LESS is existing and contains the option -R or less is called with -R. This guarantees, that instead of literal escape sequences colors are displayed. The detection of the -R presence at runtime is rather dependent on the operating system and may not work in all cases.

The script needs a lot of helper programs that may or may not be installed on your computer. The from version 2 on interactively checks for the existence of these helper programs. The script that does the colorization by default can be replaced by setting the LESSCOLORIZER env variable to the desired colorizer.

Starting with version 2.01 tab completion of files within archives is possible. A colon or equal sign after the archive name followed by a tab key press engages the completion mechanism (bash and zsh).

To get support for newer file types an additional magic file (for use in the file command, e.g. in ~/.magic) might have to be created. In that case the environment variable MAGIC has to be set and has to contain both the system magic file and your personal one. Example:
export MAGIC


The tarball lesspipe.tar.gz is available both from this site as well as from GitHub (branch lesspipe)

The following files are available separately for download from this site (all contained in the tarball):

Older versions can be downloaded from the archive as well.


Here is an incomplete list of old articles that did describe

german.txt article about the usage of lesspipe(in german, not up to date)
Linux Magazin 01/2001
CERN Computing Newsletter 01/2002
Linux User 04/2002 (in german)

The latest version (Jan 04, 2022) is version 2.01
The zip file of the latest released version and other files can be retrieved from github as well.

This document is maintained by .