Linux "lessecho" Command Line Options and Examples
expand metacharacters

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..


Usage:

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




Command Line Options:

-ox
rather than double-quote to be the open quote character which is used if the -e- option is specified.
lessecho -ox ...
-cx
Specifies "x" to be the close quote character.
lessecho -cx ...
-pn
Specifies "n" to be the open quote character, as an integer.
lessecho -pn ...
-dn
Specifies "n" to be the close quote character, as an integer.
lessecho -dn ...
-mx
Specifies "x" to be a metachar. By default, no characters are considered metachars.
lessecho -mx ...
-nn
Specifies "n" to be a metachar, as an integer.
lessecho -nn ...
-fn
Specifies "n" to be the escape char for metachars, as an integer.
lessecho -fn ...
-a
Specifies that all arguments are to be quoted. The default is that only arguments containing metacharacters are quoted
lessecho -a ...