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

47 releases since FreeBSD 6.2-RELEASE; the text changed 24 times.

  1. 6.2
  2. 6.3–7.3
  3. 7.4–8.2
  4. 8.3
  5. 8.4
  6. 9.0–9.1
  7. 9.2–10.2
  8. 10.3–11.1
  9. 11.2–11.3
  10. 11.4
  11. 12.0–12.1
  12. 12.2
  13. 12.3–12.4
  14. 13.0
  15. 13.1
  16. 13.2
  17. 13.3–13.4
  18. 13.5
  19. 14.0–14.2
  20. 14.3
  21. 14.4
  22. 14.5
  23. 15.0
  24. 15.1
  25. 16.0

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 base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.