From: schwarze Date: Sun, 11 Sep 2022 09:58:06 +0000 (+0000) Subject: Replace archaic \*(Lt and \*(Gt by plain < and >, respectively, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f78eea63cb60899c88ee243c20e1a106da264443;p=openbsd Replace archaic \*(Lt and \*(Gt by plain < and >, respectively, because these inspire devotion to cargo cult in developers. Cleanup suggested by kn@. --- 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: +RCPT TO: DATA Body of email. \&.