LESSECHO(1)

๐Ÿ’– lessecho(1) โ€” the Lil Echo Buddy That Escapes Your Metachars ๐Ÿ’–

okay bestie, welcome to the manual page for lessecho, living in the General Commands Manual section of your friendly neighbourhood man pages ๐ŸŽ€ she's tiny, she's niche, she's a little gremlin who does exactly one job and does it flawlessly, and honestly? iconic.


โœจ NAME โœจ

lessecho โ€” expand metacharacters ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

lessecho [-a] [-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] file ...

lessecho --version

๐Ÿ’… DESCRIPTION ๐Ÿ’…

so what does this girl actually do? okay so lessecho is a program that simply echos its arguments on standard output. that's it. that's the whole vibe โœจ

BUT โ€” and this is the plot twist, the main character moment, the *the way that*โ€” any metacharacter in the output gets an "escape" character slapped in front of it first. and by default that escape char is a backslash ๐Ÿฉท

big important note though, bestie: lessecho is invoked internally by less, and it is NOT intended to be used directly by humans. no cap. she's a backstage queen, not a meet-and-greet girlie. if you're a human reading this thinking "omg I'll just run her in my terminal,"โ€ฆ sure, nobody's stopping you, but that's not who she's for ๐Ÿ™ˆ


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

here's the full rundown, bestie, every single one, no skips, no cuts, we keep it thorough fr fr:

  • -ex โ€” specifies x, rather than backslash, to be the escape char for metachars. and plot twist: if x is -, then no escape char is used at all, and arguments that contain metachars get 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, but as an integer ๐Ÿ”ข
  • -dn โ€” specifies n to be the close quote character, also as an integer ๐Ÿ”ข
  • -mx โ€” specifies x to be a metachar. heads up though: by default, no characters are considered metachars. so if you want metachars, you gotta say so ๐Ÿ’€
  • -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 ๐ŸŒˆ

๐Ÿซถ SEE ALSO ๐Ÿซถ

  • less(1) โ€” yeah, her big sister, the whole reason she exists ๐Ÿ’œ

๐ŸŒŸ AUTHOR ๐ŸŒŸ

this manual page was written by Thomas Schoepf, for the Debian GNU/Linux system (but may be used by others) ๐ŸŽ€ slay, thank you Thomas, we appreciate you.

report bugs at https://github.com/gwsw/less/issues โ€” go be a good citizen and file that bug, bestie, the devs are literally waiting to hear from you ๐Ÿ›๐Ÿ’–


psst โ€” reminder that she's an internal helper for less. she's not built for you to hang out with directly. respect the lore ๐Ÿ™ˆ

and that's the whole page! ๐Ÿ’ซ this was less 710, dated 08 Sep 2026 โ€” so like, remember this exact version and date when you cite her, periodt ๐Ÿ‘‘โœจ bye bestie, go read something in less and know she's back there doing her lil escape thing for you the entire time ๐Ÿฆ‹๐Ÿ’…

๐Ÿ“ฆ where this page comes from