summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authorschwarze <>2022-09-11 09:58:06 +0000
committerschwarze <>2022-09-11 09:58:06 +0000
commitd285e298bd2f5e4b7ea20f8623d14258b0071d07 (patch)
tree1dc9d95aeb16f243d9b46f0a673061f7dc7d1eee /src/usr.bin
parent3e268b5d835a2d2ed944b2e03c9cc7f178765bb3 (diff)
downloadopenbsd-d285e298bd2f5e4b7ea20f8623d14258b0071d07.tar.gz
openbsd-d285e298bd2f5e4b7ea20f8623d14258b0071d07.tar.bz2
openbsd-d285e298bd2f5e4b7ea20f8623d14258b0071d07.zip
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 'src/usr.bin')
-rw-r--r--src/usr.bin/nc/nc.114
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index 14733597c1..0ef318e0e6 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.96 2021/03/31 20:41:35 jmc Exp $ 1.\" $OpenBSD: nc.1,v 1.97 2022/09/11 09:58:06 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -25,7 +25,7 @@
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\" 27.\"
28.Dd $Mdocdate: March 31 2021 $ 28.Dd $Mdocdate: September 11 2022 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -442,13 +442,13 @@ Start by using
442.Nm 442.Nm
443to listen on a specific port, with output captured into a file: 443to listen on a specific port, with output captured into a file:
444.Pp 444.Pp
445.Dl $ nc -l 1234 \*(Gt filename.out 445.Dl $ nc -l 1234 > filename.out
446.Pp 446.Pp
447Using a second machine, connect to the listening 447Using a second machine, connect to the listening
448.Nm 448.Nm
449process, feeding it the file which is to be transferred: 449process, feeding it the file which is to be transferred:
450.Pp 450.Pp
451.Dl $ nc -N host.example.com 1234 \*(Lt filename.in 451.Dl $ nc -N host.example.com 1234 < filename.in
452.Pp 452.Pp
453After the file has been transferred, the connection will close automatically. 453After the file has been transferred, the connection will close automatically.
454.Sh TALKING TO SERVERS 454.Sh TALKING TO SERVERS
@@ -472,10 +472,10 @@ More complicated examples can be built up when the user knows the format
472of requests required by the server. 472of requests required by the server.
473As another example, an email may be submitted to an SMTP server using: 473As another example, an email may be submitted to an SMTP server using:
474.Bd -literal -offset indent 474.Bd -literal -offset indent
475$ nc localhost 25 \*(Lt\*(Lt EOF 475$ nc localhost 25 << EOF
476HELO host.example.com 476HELO host.example.com
477MAIL FROM:\*(Ltuser@host.example.com\*(Gt 477MAIL FROM:<user@host.example.com>
478RCPT TO:\*(Ltuser2@host.example.com\*(Gt 478RCPT TO:<user2@host.example.com>
479DATA 479DATA
480Body of email. 480Body of email.
481\&. 481\&.