diff --git a/pages/common/comm.md b/pages/common/comm.md index d68b0dd99d384..e4f3662f50dd6 100644 --- a/pages/common/comm.md +++ b/pages/common/comm.md @@ -19,6 +19,6 @@ `comm -23 {{file1}} {{file2}} > {{file1_only}}` -- Print lines only found in second file, when the files aren't sorted: +- Print lines only found in the second file, when both files are sorted: -`comm -13 <(sort {{file1}}) <(sort {{file2}})` +`comm -13 {{path/to/sorted_file1}} {{path/to/sorted_file2}}` diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index ef2b6b74ae56c..35da056f1aa75 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 <<< {{example.com}}` +`echo {{example.com}} | dnsx -recon -re` - Query a specific type of DNS record: diff --git a/pages/common/for.md b/pages/common/for.md index 51b40d853c9a7..882c9b72d087e 100644 --- a/pages/common/for.md +++ b/pages/common/for.md @@ -9,7 +9,7 @@ - Iterate over a given range of numbers: -`for {{variable}} in {{{from}}..{{to}}..{{step}}}; do {{echo "Loop is executed"}}; done` +`for {{variable}} in $(seq {{from}} {{to}} {{step}}); do {{echo "Loop is executed"}}; done` - Iterate over a given list of files: diff --git a/pages/common/git-filter-repo.md b/pages/common/git-filter-repo.md index 8c24259dec80f..12bd06b83eef7 100644 --- a/pages/common/git-filter-repo.md +++ b/pages/common/git-filter-repo.md @@ -2,6 +2,7 @@ > A versatile tool for rewriting Git history. > See also: `bfg`. +> Note: Process substitution (i.e., `<(...)` and `>(...)`) may not be supported in your shell. > More information: . - Replace a sensitive string in all files: diff --git a/pages/common/ifs.md b/pages/common/ifs.md index 0dc5020ca9939..f71103f58cf20 100644 --- a/pages/common/ifs.md +++ b/pages/common/ifs.md @@ -14,7 +14,7 @@ - Reset IFS to default: -`IFS=$' \t\n'` +`IFS=''` - Temporarily change the IFS value in a subshell: diff --git a/pages/common/md-to-clip.md b/pages/common/md-to-clip.md index 641c71d5be7ca..17c3209ed5b93 100644 --- a/pages/common/md-to-clip.md +++ b/pages/common/md-to-clip.md @@ -14,7 +14,7 @@ - Convert a tldr-page file to `stdout`: -`md-to-clip --no-file-save <(echo '{{page-content}}')` +`md-to-clip --no-file-save < {{path/to/page.md}}` - Convert tldr-pages files while recognizing additional placeholders from a specific config: diff --git a/pages/common/sops.md b/pages/common/sops.md index b3d88b7d6ccbb..9bb6f984aa909 100644 --- a/pages/common/sops.md +++ b/pages/common/sops.md @@ -1,6 +1,7 @@ # sops > SOPS (Secrets OPerationS): a simple and flexible tool for managing secrets. +> Note: Process substitution (i.e., `<(...)` and `>(...)`) may not be supported by your shell. > More information: . - Encrypt a file: diff --git a/pages/common/tee.md b/pages/common/tee.md index 9083e60058ce6..36b023acca8e0 100644 --- a/pages/common/tee.md +++ b/pages/common/tee.md @@ -1,6 +1,7 @@ # tee > Read from `stdin` and write to `stdout` and files (or commands). +> Note: Process substitution (i.e., `<(...)` and `>(...)`) may not be supported by your shell. > More information: . - Copy `stdin` to each file, and also to `stdout`: