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โ specifiesx, rather than backslash, to be the escape char for metachars. and plot twist: ifxis-, then no escape char is used at all, and arguments that contain metachars get surrounded by quotes instead ๐-oxโ specifiesx, rather than double-quote, to be the open quote character, which is used if the-e-option is specified.-cxโ specifiesxto be the close quote character.-pnโ specifiesnto be the open quote character, but as an integer ๐ข-dnโ specifiesnto be the close quote character, also as an integer ๐ข-mxโ specifiesxto be a metachar. heads up though: by default, no characters are considered metachars. so if you want metachars, you gotta say so ๐-nnโ specifiesnto be a metachar, as an integer ๐ข-fnโ specifiesnto 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
- fedora 43: less 710-1.fc43 ยท (GPL-3.0-only OR BSD-2-Clause) AND GPL-2.0-or-later
- fedora 44: less 710-1.fc44 ยท (GPL-3.0-only OR BSD-2-Clause) AND GPL-2.0-or-later
- nixpkgs unstable: less 710
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms