lessecho(1)

lessecho1

Expand metacharacters

Usage

lessecho [-a] [-o x] [-c x] [-p n] [-d n] [-m x] [-n n] [-e x] file ...

lessecho --version

Overview

lessecho is a program that simply echos its arguments on standard output. But any metacharacter in the output is preceded by an "escape" character, which by default is a backslash. lessecho is invoked internally by less, and is not intended to be used directly by humans.

Options

A summary of options is included below.

-ex

Specifies "x", rather than backslash, to be the escape char for metachars. If x is "-", no escape char is used and arguments containing metachars are surrounded by quotes instead.

-ox

Specifies "x", rather than double-quote, to be the open quote character, which is used if the -e- option is specified.

-cx

Specifies "x" to be the close quote character.

-pn

Specifies "n" to be the open quote character, as an integer.

-dn

Specifies "n" to be the close quote character, as an integer.

-mx

Specifies "x" to be a metachar. By default, no characters are considered metachars.

-nn

Specifies "n" to be a metachar, as an integer.

-fn

Specifies "n" to be the escape char for metachars, as an integer.

-a

Specifies that all arguments are to be quoted. The default is that only arguments containing metacharacters are quoted.

Releases

16 releases since Debian 2.0 (Hamm); the text changed 12 times.

  1. 2.0–2.1
  2. 2.2–3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. Arch

-a since Debian 2.2 (Potato); -cx since Debian 2.2 (Potato); -dn since Debian 2.2 (Potato); -ex since Debian 4.0 (Etch); -fn since Debian 4.0 (Etch); -mx since Debian 4.0 (Etch); -nn since Debian 4.0 (Etch); -ox since Debian 2.2 (Potato); -pn since Debian 2.2 (Potato).

Author

This manual page was written by Thomas Schoepf ⟨[email protected]⟩, for the Debian GNU/Linux system (but may be used by others).

Report bugs at ⟨https://\:github\:.com/\:gwsw/\:less/\:issues⟩.

From less 1:710-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.