Linux Commands Examples

A great documentation place for Linux commands


expand metacharacters

see also : less


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

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


libtermcap.a : less.rdef ;
BinCommand lesskey : lesskey.c version.c : : less.rdef ;
BinCommand lessecho : lessecho.c version.c : : less.rdef ;


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.


A summary of options is included below.


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.


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


Specifies "x" to be the close quote character.


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


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


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


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


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


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

see also



This manual page was written by Thomas Schoepf <schoepf[:at:]debian[:dot:]org>, for the Debian GNU/Linux system (but may be used by others).

Send bug reports or comments to bug-less[:at:]gnu[:dot:]org.

How can this site be more helpful to YOU ?

give  feedback