diff --git a/pages/common/lwp-request.md b/pages/common/lwp-request.md index d1d5922a3ad9ae..5b7c620adfe2c9 100644 --- a/pages/common/lwp-request.md +++ b/pages/common/lwp-request.md @@ -10,7 +10,7 @@ - Upload a file with a POST request: -`lwp-request -m POST {{http://example.com/some/path}} < {{path/to/file}}` +`lwp-request < {{path/to/file}} -m POST {{http://example.com/some/path}}` - Make a request with a custom user agent: diff --git a/pages/common/read.md b/pages/common/read.md index 94a6aa7ef79889..0e809d7a6c0796 100644 --- a/pages/common/read.md +++ b/pages/common/read.md @@ -33,4 +33,4 @@ - Read `stdin` and perform an action on every line: -`while read line; do {{echo|ls|rm|...}} "$line"; done < {{/dev/stdin|path/to/file|...}}` +`cat {{/dev/stdin|path/to/file|...}} | while read line; do {{echo|ls|rm|...}} "$line"; done` diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md index a24e690568d1fc..89a862a096fa09 100644 --- a/pages/linux/ncat.md +++ b/pages/linux/ncat.md @@ -14,7 +14,7 @@ - Write output of specified file to the specified host on the specified port: -`ncat {{address}} {{port}} < {{path/to/file}}` +`ncat < {{path/to/file}} {{address}} {{port}}` - Accept multiple incoming connections on an encrypted channel evading detection of traffic content: