xref: /netbsd-src/external/bsd/less/dist/lessecho.man (revision e4a6e799a67c2028562d75b4e61407b22434aa36)
1LESSECHO(1)                 General Commands Manual                LESSECHO(1)
2
3
4
5NAME
6       lessecho - expand metacharacters
7
8SYNOPSIS
9       lessecho [-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] [-a] file ...
10
11DESCRIPTION
12       lessecho  is a program that simply echos its arguments on standard out‐
13       put.  But any metacharacter in the output is preceded  by  an  "escape"
14       character, which by default is a backslash.
15
16OPTIONS
17       A summary of options is included below.
18
19       -ex    Specifies  "x", rather than backslash, to be the escape char for
20              metachars.  If x is "-", no escape char is  used  and  arguments
21              containing metachars are surrounded by quotes instead.
22
23       -ox    Specifies  "x",  rather  than double-quote, to be the open quote
24              character, which is used if the -e- option is specified.
25
26       -cx    Specifies "x" to be the close quote character.
27
28       -pn    Specifies "n" to be the open quote character, as an integer.
29
30       -dn    Specifies "n" to be the close quote character, as an integer.
31
32       -mx    Specifies "x" to be a metachar.  By default, no  characters  are
33              considered metachars.
34
35       -nn    Specifies "n" to be a metachar, as an integer.
36
37       -fn    Specifies  "n"  to be the escape char for metachars, as an inte‐
38              ger.
39
40       -a     Specifies that all arguments are to be quoted.  The  default  is
41              that only arguments containing metacharacters are quoted.
42
43SEE ALSO
44       less(1)
45
46AUTHOR
47       This  manual  page  was written by Thomas Schoepf <schoepf@debian.org>,
48       for the Debian GNU/Linux system (but may be used by others).
49
50       Report bugs at https://github.com/gwsw/less/issues.
51
52
53
54                           Version 643: 20 Jul 2023                LESSECHO(1)
55