diff --git a/pages/common/coproc.md b/pages/common/coproc.md index 967a1ffdc9..95f557b561 100644 --- a/pages/common/coproc.md +++ b/pages/common/coproc.md @@ -17,7 +17,7 @@ - Read from a specific coprocess `stdout`: -`read {{variable}} <&"${{{name[0]}}}"` +`read <&"${{{name[0]}}}" {{variable}}` - Create a coprocess which repeatedly reads `stdin` and runs some commands on the input: @@ -29,4 +29,4 @@ - Create and use a coprocess running `bc`: -`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"` +`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"` diff --git a/pages/common/cpio.md b/pages/common/cpio.md index b9c7dad81c..d11bc99d67 100644 --- a/pages/common/cpio.md +++ b/pages/common/cpio.md @@ -14,4 +14,4 @@ - Pick all files from an archive (copy-[i]n), generating directories where needed, in verbose mode: -`cpio {{[-idv|--extract --make-directories --verbose]}} < {{archive.cpio}}` +`cpio < {{archive.cpio}} {{[-idv|--extract --make-directories --verbose]}}` diff --git a/pages/common/cupstestppd.md b/pages/common/cupstestppd.md index 1405a2bfed..f005d0b27e 100644 --- a/pages/common/cupstestppd.md +++ b/pages/common/cupstestppd.md @@ -12,7 +12,7 @@ - Get the PPD file from `stdin`, showing detailed conformance testing results: -`cupstestppd -v - < {{path/to/file.ppd}}` +`cupstestppd < {{path/to/file.ppd}} -v -` - Test all PPD files under the current directory, printing the names of each file that does not conform: diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index 0370f18790..5a2f5f445f 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -11,7 +11,7 @@ - Query all the DNS records (A, AAAA, CNAME, NS, TXT, SRV, PTR, MX, SOA, AXFR, CAA): -`dnsx -recon {{[-re|-resp]}} <<< {{example.com}}` +`dnsx <<< {{example.com}} -recon {{[-re|-resp]}}` - Query a specific type of DNS record: diff --git a/pages/common/docker-build.md b/pages/common/docker-build.md index 372f7788ee..96a9c17efd 100644 --- a/pages/common/docker-build.md +++ b/pages/common/docker-build.md @@ -17,7 +17,7 @@ - Build a Docker image with no build context: -`docker build {{[-t|--tag]}} {{name:tag}} - < {{Dockerfile}}` +`docker < {{Dockerfile}} build {{[-t|--tag]}} {{name:tag}} -` - Do not use the cache when building the image: diff --git a/pages/common/docker-load.md b/pages/common/docker-load.md index 3dcedf9bc3..ea88c45a25 100644 --- a/pages/common/docker-load.md +++ b/pages/common/docker-load.md @@ -5,7 +5,7 @@ - Load a Docker image from `stdin`: -`docker load < {{path/to/image_file.tar}}` +`docker < {{path/to/image_file.tar}} load` - Load a Docker image from a specific file: diff --git a/pages/common/esbuild.md b/pages/common/esbuild.md index 9fb7fc2354..6a1d8a0ba6 100644 --- a/pages/common/esbuild.md +++ b/pages/common/esbuild.md @@ -9,7 +9,7 @@ - Bundle a JSX application from `stdin`: -`esbuild --bundle --outfile={{path/to/out.js}} < {{path/to/file.jsx}}` +`esbuild < {{path/to/file.jsx}} --bundle --outfile={{path/to/out.js}}` - Bundle and minify a JSX application with source maps in `production` mode: diff --git a/pages/common/etcdctl.md b/pages/common/etcdctl.md index dcc7f42d4b..ce63286c87 100644 --- a/pages/common/etcdctl.md +++ b/pages/common/etcdctl.md @@ -17,7 +17,7 @@ - Store a key-value pair, reading the value from a file: -`etcdctl put {{my/file}} < {{path/to/file.txt}}` +`etcdctl < {{path/to/file.txt}} put {{my/file}}` - Save a snapshot of the etcd keystore: diff --git a/pages/common/fabric.md b/pages/common/fabric.md index e24e8d3319..6158166078 100644 --- a/pages/common/fabric.md +++ b/pages/common/fabric.md @@ -14,7 +14,7 @@ - Run a pattern with input from a file: -`fabric {{[-p|--pattern]}} {{pattern_name}} < {{path/to/input_file}}` +`fabric < {{path/to/input_file}} {{[-p|--pattern]}} {{pattern_name}}` - Run a pattern on a YouTube video URL: diff --git a/pages/common/fclones.md b/pages/common/fclones.md index 93e3cb9b33..00d351814d 100644 --- a/pages/common/fclones.md +++ b/pages/common/fclones.md @@ -17,11 +17,11 @@ - Move the duplicate files in a TXT file to a different directory: -`fclones move {{path/to/target_directory}} < {{path/to/file.txt}}` +`fclones < {{path/to/file.txt}} move {{path/to/target_directory}}` - Perform a dry run for soft links in a TXT file without actually linking: -`fclones link --soft < {{path/to/file.txt}} --dry-run 2 > /dev/null` +`fclones < {{path/to/file.txt}} link --soft --dry-run 2 > /dev/null` - Delete the newest duplicates from the current directory without storing them in a file: diff --git a/pages/common/gau.md b/pages/common/gau.md index f284f39e59..589c790c78 100644 --- a/pages/common/gau.md +++ b/pages/common/gau.md @@ -13,7 +13,7 @@ - Fetch all URLs of several domains from an input file, running multiple threads: -`gau --threads {{4}} < {{path/to/domains.txt}}` +`gau < {{path/to/domains.txt}} --threads {{4}}` - Write [o]utput results to a file: diff --git a/pages/common/gh-secret-set.md b/pages/common/gh-secret-set.md index ade60997fc..4ed4660195 100644 --- a/pages/common/gh-secret-set.md +++ b/pages/common/gh-secret-set.md @@ -9,7 +9,7 @@ - Set a secret from a file for the current repository: -`gh secret set {{name}} < {{path/to/file}}` +`gh < {{path/to/file}} secret set {{name}}` - Set a secret for a specific repository: diff --git a/pages/common/gh-secret.md b/pages/common/gh-secret.md index 81f75e3d13..672aada202 100644 --- a/pages/common/gh-secret.md +++ b/pages/common/gh-secret.md @@ -21,7 +21,7 @@ - Set a secret from a file for the current repository: -`gh secret set {{name}} < {{path/to/file}}` +`gh < {{path/to/file}} secret set {{name}}` - Set an organization secret for specific repositories: diff --git a/pages/common/git-check-ignore.md b/pages/common/git-check-ignore.md index 0b1c9df811..4146274b16 100644 --- a/pages/common/git-check-ignore.md +++ b/pages/common/git-check-ignore.md @@ -13,7 +13,7 @@ - Use pathnames, one per line, from `stdin`: -`git check-ignore --stdin < {{path/to/file_list}}` +`git < {{path/to/file_list}} check-ignore --stdin` - Do not check the index (used to debug why paths were tracked and not ignored): diff --git a/pages/common/git-mktree.md b/pages/common/git-mktree.md index b8459ba488..fa103aabc0 100644 --- a/pages/common/git-mktree.md +++ b/pages/common/git-mktree.md @@ -21,4 +21,4 @@ - Sort and build a tree from `stdin` (non-recursive `git ls-tree` output format is required): -`git mktree < {{path/to/tree.txt}}` +`git < {{path/to/tree.txt}} mktree` diff --git a/pages/common/git-stripspace.md b/pages/common/git-stripspace.md index 4a1530e804..964a1ebe41 100644 --- a/pages/common/git-stripspace.md +++ b/pages/common/git-stripspace.md @@ -13,4 +13,4 @@ - Convert all lines in a file into Git comments: -`git stripspace {{[-c|--comment-lines]}} < {{path/to/file}}` +`git < {{path/to/file}} stripspace {{[-c|--comment-lines]}}` diff --git a/pages/common/mariadb.md b/pages/common/mariadb.md index f6d533e952..7502fb3d41 100644 --- a/pages/common/mariadb.md +++ b/pages/common/mariadb.md @@ -21,7 +21,7 @@ - Execute SQL statements from a script file: -`mariadb {{db_name}} < {{path/to/script.sql}} > {{path/to/output.tab}}` +`mariadb < {{path/to/script.sql}} {{db_name}} > {{path/to/output.tab}}` - Check memory and open file usage at exit: diff --git a/pages/common/mosquitto_pub.md b/pages/common/mosquitto_pub.md index 01dcfc806c..53d1874b4b 100644 --- a/pages/common/mosquitto_pub.md +++ b/pages/common/mosquitto_pub.md @@ -21,7 +21,7 @@ - Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic: -`mosquitto_pub {{[-t|--topic]}} {{sensors/temperature}} {{[-s|--stdin-file]}} < {{data.txt}}` +`mosquitto_pub < {{data.txt}} {{[-t|--topic]}} {{sensors/temperature}} {{[-s|--stdin-file]}}` - Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic: diff --git a/pages/common/openssl-s_client.md b/pages/common/openssl-s_client.md index 7b8d087ba9..0dcc0cfa9b 100644 --- a/pages/common/openssl-s_client.md +++ b/pages/common/openssl-s_client.md @@ -9,7 +9,7 @@ - Display the certificate presented by an SSL/TLS server: -`openssl s_client -connect {{host}}:{{port}} {{path/to/public_key}}` +`wg < {{path/to/private_key}} pubkey > {{path/to/public_key}}` - Generate a public and private key: