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 under a ksh compliant shell (e.g. bash, zsh) 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 README file.

Syntax highlighting of source code is possible through an included script code2color which is derived from Peter Palfraders code2html script or an external program (pygmentize).
The script code2color is written in perl and has colorizing support for the languages ada, asm, awk, c, c++, groff, html, xml, java, javascript, lisp, m4, make, pascal, patch, perl, povray, python, ruby, shellscript and sql.

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 -r or less is called with one of these options. This guarantees, that instead of literal escape sequences colors are displayed. The detection of the -r/-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. Therefore you should download the tarball lesspipe.tar.gz and use configure to customize for the local computer. A preconfigured for Linux is provided as an example only. There syntax highlighting is switched on. The code2color script does the colorization, but can be replaced by an external program (pygmentize)

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 articles that do describe

Linux Magazin 01/2001
CERN Computing Newsletter 01/2002
Linux User 04/2002 (in german)
Linux Magazine 21/2002

The latest version (Aug 20, 2020) is version 1.85
It is recommended to use the latest version from github instead.

This document is maintained by .