freebsd-src/contrib/less/lessecho.nro

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-08-13 07:06:29 +00:00
.TH LESSECHO 1 "Version 643: 20 Jul 2023"
2006-08-20 15:49:51 +00:00
.SH NAME
lessecho \- expand metacharacters
.SH SYNOPSIS
.B lessecho
.I "[-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] [-a] file ..."
.SH "DESCRIPTION"
2023-05-01 08:22:19 +00:00
.B lessecho
2006-08-20 15:49:51 +00:00
is a program that simply echos its arguments on standard output.
2012-06-26 20:38:53 +00:00
But any metacharacter in the output is preceded by an "escape"
character, which by default is a backslash.
2006-08-20 15:49:51 +00:00
.SH OPTIONS
A summary of options is included below.
.TP
2023-05-01 08:22:19 +00:00
.B \-e\fIx\fP
Specifies "\fIx\fP", rather than backslash, to be the escape char for metachars.
If \fIx\fP is "-", no escape char is used and arguments containing metachars
2012-06-26 20:38:53 +00:00
are surrounded by quotes instead.
.TP
2023-05-01 08:22:19 +00:00
.B \-o\fIx\fP
Specifies "\fIx\fP", rather than double-quote, to be the open quote character,
2021-04-19 01:15:19 +00:00
which is used if the \-e- option is specified.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-c\fIx\fP
Specifies "\fIx\fP" to be the close quote character.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-p\fIn\fP
Specifies "\fIn\fP" to be the open quote character, as an integer.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-d\fIn\fP
Specifies "\fIn\fP" to be the close quote character, as an integer.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-m\fIx\fP
Specifies "\fIx\fP" to be a metachar.
2012-06-26 20:38:53 +00:00
By default, no characters are considered metachars.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-n\fIn\fP
Specifies "\fIn\fP" to be a metachar, as an integer.
2006-08-20 15:49:51 +00:00
.TP
2023-05-01 08:22:19 +00:00
.B \-f\fIn\fP
Specifies "\fIn\fP" to be the escape char for metachars, as an integer.
2006-08-20 15:49:51 +00:00
.TP
.B \-a
Specifies that all arguments are to be quoted.
2021-04-19 01:15:19 +00:00
The default is that only arguments containing metacharacters are quoted.
2006-08-20 15:49:51 +00:00
.SH "SEE ALSO"
2020-10-24 05:25:54 +00:00
.BR less (1)
2006-08-20 15:49:51 +00:00
.SH AUTHOR
This manual page was written by Thomas Schoepf <schoepf@debian.org>,
for the Debian GNU/Linux system (but may be used by others).
.PP
2021-04-19 01:15:19 +00:00
Report bugs at https://github.com/gwsw/less/issues.