diff options
| author | schwarze <> | 2022-09-11 09:58:06 +0000 |
|---|---|---|
| committer | schwarze <> | 2022-09-11 09:58:06 +0000 |
| commit | d285e298bd2f5e4b7ea20f8623d14258b0071d07 (patch) | |
| tree | 1dc9d95aeb16f243d9b46f0a673061f7dc7d1eee /src | |
| parent | 3e268b5d835a2d2ed944b2e03c9cc7f178765bb3 (diff) | |
| download | openbsd-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')
| -rw-r--r-- | src/usr.bin/nc/nc.1 | 14 |
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 |
| 443 | to listen on a specific port, with output captured into a file: | 443 | to 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 |
| 447 | Using a second machine, connect to the listening | 447 | Using a second machine, connect to the listening |
| 448 | .Nm | 448 | .Nm |
| 449 | process, feeding it the file which is to be transferred: | 449 | process, 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 |
| 453 | After the file has been transferred, the connection will close automatically. | 453 | After 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 | |||
| 472 | of requests required by the server. | 472 | of requests required by the server. |
| 473 | As another example, an email may be submitted to an SMTP server using: | 473 | As 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 |
| 476 | HELO host.example.com | 476 | HELO host.example.com |
| 477 | MAIL FROM:\*(Ltuser@host.example.com\*(Gt | 477 | MAIL FROM:<user@host.example.com> |
| 478 | RCPT TO:\*(Ltuser2@host.example.com\*(Gt | 478 | RCPT TO:<user2@host.example.com> |
| 479 | DATA | 479 | DATA |
| 480 | Body of email. | 480 | Body of email. |
| 481 | \&. | 481 | \&. |
