summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2022-09-11 09:58:07 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2022-09-11 09:58:07 +0000
commit0bafd3abb071bb6066d62d28e68e48754aba0d2f (patch)
tree64d7c225d61db5ae9433ace0de51b9970047ca91 /usr.bin/nc
parentfc6ad5daddfac4a419bffbb0fca01114ce4fb715 (diff)
Replace archaic \*(Lt and \*(Gt by plain < and >, respectively,
because these inspire devotion to cargo cult in developers. Cleanup suggested by kn@.
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/nc.114
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1
index 14733597c18..0ef318e0e6f 100644
--- a/usr.bin/nc/nc.1
+++ b/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nc.1,v 1.96 2021/03/31 20:41:35 jmc Exp $
+.\" $OpenBSD: nc.1,v 1.97 2022/09/11 09:58:06 schwarze Exp $
.\"
.\" Copyright (c) 1996 David Sacerdote
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 31 2021 $
+.Dd $Mdocdate: September 11 2022 $
.Dt NC 1
.Os
.Sh NAME
@@ -442,13 +442,13 @@ Start by using
.Nm
to listen on a specific port, with output captured into a file:
.Pp
-.Dl $ nc -l 1234 \*(Gt filename.out
+.Dl $ nc -l 1234 > filename.out
.Pp
Using a second machine, connect to the listening
.Nm
process, feeding it the file which is to be transferred:
.Pp
-.Dl $ nc -N host.example.com 1234 \*(Lt filename.in
+.Dl $ nc -N host.example.com 1234 < filename.in
.Pp
After the file has been transferred, the connection will close automatically.
.Sh TALKING TO SERVERS
@@ -472,10 +472,10 @@ More complicated examples can be built up when the user knows the format
of requests required by the server.
As another example, an email may be submitted to an SMTP server using:
.Bd -literal -offset indent
-$ nc localhost 25 \*(Lt\*(Lt EOF
+$ nc localhost 25 << EOF
HELO host.example.com
-MAIL FROM:\*(Ltuser@host.example.com\*(Gt
-RCPT TO:\*(Ltuser2@host.example.com\*(Gt
+MAIL FROM:<user@host.example.com>
+RCPT TO:<user2@host.example.com>
DATA
Body of email.
\&.