1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 00:15:25 +02:00
This commit is contained in:
jtmr05 2025-07-01 10:51:16 +07:00 committed by GitHub
commit 9b783263c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 78 additions and 78 deletions

View file

@ -9,7 +9,7 @@
- Read JSON from `stdin` and execute a specified JSONPath expression: - Read JSON from `stdin` and execute a specified JSONPath expression:
`cat {{path/to/file.json}} | ajson '{{$..json[?(@.path)]}}'` `ajson '{{$..json[?(@.path)]}}' < {{path/to/file.json}}`
- Read JSON from a URL and evaluate a specified JSONPath expression: - Read JSON from a URL and evaluate a specified JSONPath expression:

View file

@ -13,7 +13,7 @@
- Translate a text file from English to Hindi: - Translate a text file from English to Hindi:
`cat {{path/to/file.txt}} | argos-translate --from-lang en --to-lang hi` `argos-translate --from-lang en --to-lang hi < {{path/to/file.txt}}`
- List all installed translation pairs: - List all installed translation pairs:

View file

@ -9,7 +9,7 @@
- List misspelled words from `stdin`: - List misspelled words from `stdin`:
`cat {{path/to/file}} | aspell list` `aspell list < {{path/to/file}}`
- Show available dictionary languages: - Show available dictionary languages:
@ -21,4 +21,4 @@
- List misspelled words from `stdin` and ignore words from personal word list: - List misspelled words from `stdin` and ignore words from personal word list:
`cat {{path/to/file}} | aspell --personal {{personal-word-list.pws}} list` `aspell --personal {{personal-word-list.pws}} list < {{path/to/file}}`

View file

@ -29,4 +29,4 @@
- Search `stdin` for lines that do not match a pattern: - Search `stdin` for lines that do not match a pattern:
`cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"` `bzgrep {{[-v|--invert-match]}} "{{search_pattern}}" < {{/path/to/bz/compressed/file}}`

View file

@ -5,23 +5,23 @@
- Hunt for secrets using custom regexes and output results in JSON: - Hunt for secrets using custom regexes and output results in JSON:
`cat {{path/to/urls.txt}} | cariddi -s -sf {{path/to/custom_secrets.txt}} -json` `cariddi -s -sf {{path/to/custom_secrets.txt}} -json < {{path/to/urls.txt}}`
- Hunt for juicy endpoints with high concurrency and timeout with plain output results: - Hunt for juicy endpoints with high concurrency and timeout with plain output results:
`cat {{path/to/urls.txt}} | cariddi -e -c {{250}} -t {{15}} -plain` `cariddi -e -c {{250}} -t {{15}} -plain < {{path/to/urls.txt}}`
- Crawl with debug mode and store HTTP responses and output results in `txt` file: - Crawl with debug mode and store HTTP responses and output results in `txt` file:
`cat {{path/to/urls.txt}} | cariddi -debug -sr -ot {{path/to/debug_output.txt}}` `cariddi -debug -sr -ot {{path/to/debug_output.txt}} < {{path/to/urls.txt}}`
- Perform an intensive crawl with a proxy and random user agent and output results in `html` file: - Perform an intensive crawl with a proxy and random user agent and output results in `html` file:
`cat {{path/to/urls.txt}} | cariddi -intensive -proxy {{http://127.0.0.1:8080}} -rua -oh {{path/to/intensive_crawl.html}}` `cariddi -intensive -proxy {{http://127.0.0.1:8080}} -rua -oh {{path/to/intensive_crawl.html}} < {{path/to/urls.txt}}`
- Hunt for errors and useful information with a custom delay and use `.cariddi_cache` folder as cache: - Hunt for errors and useful information with a custom delay and use `.cariddi_cache` folder as cache:
`cat {{path/to/urls.txt}} | cariddi -err -info -d {{3}} -cache` `cariddi -err -info -d {{3}} -cache < {{path/to/urls.txt}}`
- Show example uses: - Show example uses:

View file

@ -13,7 +13,7 @@
- Print only lines common to both files, reading one file from `stdin`: - Print only lines common to both files, reading one file from `stdin`:
`cat {{file1}} | comm -12 - {{file2}}` `comm -12 - {{file2}} < {{file1}}`
- Get lines only found in first file, saving the result to a third file: - Get lines only found in first file, saving the result to a third file:

View file

@ -29,7 +29,7 @@
- Read CSV from `stdin` and write CSV to `stdout`: - Read CSV from `stdin` and write CSV to `stdout`:
`cat {{path/to/source.csv}} | duckdb -c "{{COPY (FROM read_csv('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}"` `duckdb -c "{{COPY (FROM read_csv('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}" < {{path/to/source.csv}}`
- Start the DuckDB UI, a web interface with notebooks: - Start the DuckDB UI, a web interface with notebooks:

View file

@ -13,7 +13,7 @@
- Search `stdin` for a pattern: - Search `stdin` for a pattern:
`cat {{path/to/file}} | egrep {{search_pattern}}` `egrep {{search_pattern}} < {{path/to/file}}`
- Print file name and line number for each match: - Print file name and line number for each match:

View file

@ -13,7 +13,7 @@
- Create a new IAM role: - Create a new IAM role:
`cat {{/path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -` `exo iam role create {{iam_role_name}} --editable --policy - < {{/path/to/policy.json}}`
- Show the policy of an existing IAM role: - Show the policy of an existing IAM role:
@ -21,4 +21,4 @@
- Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization): - Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization):
`cat {{/path/to/policy.json}} | exo iam org-policy update -` `exo iam org-policy update - < {{/path/to/policy.json}}`

View file

@ -17,4 +17,4 @@
- Compute the object ID from `stdin`: - Compute the object ID from `stdin`:
`cat {{path/to/file}} | git hash-object --stdin` `git hash-object --stdin < {{path/to/file}}`

View file

@ -5,11 +5,11 @@
- Trim whitespace from a file: - Trim whitespace from a file:
`cat {{path/to/file}} | git stripspace` `git stripspace < {{path/to/file}}`
- Trim whitespace and Git comments from a file: - Trim whitespace and Git comments from a file:
`cat {{path/to/file}} | git stripspace {{[-s|--strip-comments]}}` `git stripspace {{[-s|--strip-comments]}} < {{path/to/file}}`
- Convert all lines in a file into Git comments: - Convert all lines in a file into Git comments:

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.gml}} | gml2gv > {{output.gv}}` `gml2gv > {{output.gv}} < {{input.gml}}`
- Display help: - Display help:

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.gml}} | graphml2gv > {{output.gv}}` `graphml2gv > {{output.gv}} < {{input.gml}}`
- Display help: - Display help:

View file

@ -33,4 +33,4 @@
- Search `stdin` for lines that do not match a pattern: - Search `stdin` for lines that do not match a pattern:
`cat {{path/to/file}} | grep {{[-v|--invert-match]}} "{{search_pattern}}"` `grep {{[-v|--invert-match]}} "{{search_pattern}}" < {{path/to/file}}`

View file

@ -21,4 +21,4 @@
- Decompress an archive from `stdin`: - Decompress an archive from `stdin`:
`cat {{path/to/archive.gz}} | gunzip` `gunzip < {{path/to/archive.gz}}`

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.gv}} | gv2gml > {{output.gml}}` `gv2gml > {{output.gml}} < {{input.gv}}`
- Display help: - Display help:

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.gv}} | gv2gxl > {{output.gxl}}` `gv2gxl > {{output.gxl}} < {{input.gv}}`
- Display help: - Display help:

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.gxl}} | gxl2gv > {{output.gv}}` `gxl2gv > {{output.gv}} < {{input.gxl}}`
- Display help: - Display help:

View file

@ -5,19 +5,19 @@
- Return all elements of class `card`: - Return all elements of class `card`:
`cat {{path/to/file.html}} | htmlq '.card'` `htmlq '.card' < {{path/to/file.html}}`
- Get the text content of the first paragraph: - Get the text content of the first paragraph:
`cat {{path/to/file.html}} | htmlq --text 'p:first-of-type'` `htmlq --text 'p:first-of-type' < {{path/to/file.html}}`
- Find all the links in a page: - Find all the links in a page:
`cat {{path/to/file.html}} | htmlq --attribute href 'a'` `htmlq --attribute href 'a' < {{path/to/file.html}}`
- Remove all images and SVGs from a page: - Remove all images and SVGs from a page:
`cat {{path/to/file.html}} | htmlq --remove-nodes 'img' --remove-nodes 'svg'` `htmlq --remove-nodes 'img' --remove-nodes 'svg' < {{path/to/file.html}}`
- Pretty print and write the output to a file: - Pretty print and write the output to a file:

View file

@ -5,15 +5,15 @@
- Probe a list of domains from a text file: - Probe a list of domains from a text file:
`cat {{input_file}} | httprobe` `httprobe < {{input_file}}`
- Only check for HTTP if HTTPS is not working: - Only check for HTTP if HTTPS is not working:
`cat {{input_file}} | httprobe --prefer-https` `httprobe --prefer-https < {{input_file}}`
- Probe additional ports with a given protocol: - Probe additional ports with a given protocol:
`cat {{input_file}} | httprobe -p {{https:2222}}` `httprobe -p {{https:2222}} < {{input_file}}`
- Display help: - Display help:

View file

@ -18,4 +18,4 @@
- Pipe a JSON file to in2csv: - Pipe a JSON file to in2csv:
`cat {{data.json}} | in2csv {{[-f|--format]}} json > {{data.csv}}` `in2csv {{[-f|--format]}} json > {{data.csv}} < {{data.json}}`

View file

@ -5,28 +5,28 @@
- Pretty-print JSON or JSON-Lines data from `stdin` to `stdout`: - Pretty-print JSON or JSON-Lines data from `stdin` to `stdout`:
`cat {{file.json}} | jello` `jello < {{file.json}}`
- Output a schema of JSON or JSON Lines data from `stdin` to `stdout` (useful for grep): - Output a schema of JSON or JSON Lines data from `stdin` to `stdout` (useful for grep):
`cat {{file.json}} | jello -s` `jello -s < {{file.json}}`
- Output all elements from arrays (or all the values from objects) in JSON or JSON-Lines data from `stdin` to `stdout`: - Output all elements from arrays (or all the values from objects) in JSON or JSON-Lines data from `stdin` to `stdout`:
`cat {{file.json}} | jello -l` `jello -l < {{file.json}}`
- Output the first element in JSON or JSON-Lines data from `stdin` to `stdout`: - Output the first element in JSON or JSON-Lines data from `stdin` to `stdout`:
`cat {{file.json}} | jello _[0]` `jello _[0] < {{file.json}}`
- Output the value of a given key of each element in JSON or JSON-Lines data from `stdin` to `stdout`: - Output the value of a given key of each element in JSON or JSON-Lines data from `stdin` to `stdout`:
`cat {{file.json}} | jello '[i.{{key_name}} for i in _]'` `jello '[i.{{key_name}} for i in _]' < {{file.json}}`
- Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name1` and `key_name2`): - Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name1` and `key_name2`):
`cat {{file.json}} | jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{key_name2}}}'` `jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{key_name2}}}' < {{file.json}}`
- Output the value of a given key to a string (and disable JSON output): - Output the value of a given key to a string (and disable JSON output):
`cat {{file.json}} | jello -r '"{{some text}}: " + _.{{key_name}}'` `jello -r '"{{some text}}: " + _.{{key_name}}' < {{file.json}}`

View file

@ -21,4 +21,4 @@
- Join a file from `stdin`: - Join a file from `stdin`:
`cat {{path/to/file1}} | join - {{path/to/file2}}` `join - {{path/to/file2}} < {{path/to/file1}}`

View file

@ -5,16 +5,16 @@
- Print a table from JSON or JSON Lines input: - Print a table from JSON or JSON Lines input:
`cat {{file.json}} | jtbl` `jtbl < {{file.json}}`
- Print a table and specify the column width for wrapping: - Print a table and specify the column width for wrapping:
`cat {{file.json}} | jtbl --cols={{width}}` `jtbl --cols={{width}} < {{file.json}}`
- Print a table and truncate rows instead of wrapping: - Print a table and truncate rows instead of wrapping:
`cat {{file.json}} | jtbl {{[-t|--truncate]}}` `jtbl {{[-t|--truncate]}} < {{file.json}}`
- Print a table and don't wrap or truncate rows: - Print a table and don't wrap or truncate rows:
`cat {{file.json}} | jtbl {{[-n|--no-wrap]}}` `jtbl {{[-n|--no-wrap]}} < {{file.json}}`

View file

@ -25,7 +25,7 @@
- Create a file from `stdin`: - Create a file from `stdin`:
`cat {{path/to/file}} | kate {{[-i|--stdin]}}` `kate {{[-i|--stdin]}} < {{path/to/file}}`
- Display help: - Display help:

View file

@ -13,7 +13,7 @@
- Read from `stdin`, sorting all except the first line: - Read from `stdin`, sorting all except the first line:
`cat {{path/to/file}} | keep-header -- {{command}}` `keep-header -- {{command}} < {{path/to/file}}`
- Grep a file, keeping the first line regardless of the search pattern: - Grep a file, keeping the first line regardless of the search pattern:

View file

@ -13,7 +13,7 @@
- Run a system prompt against a file: - Run a system prompt against a file:
`cat {{path/to/file.py}} | llm {{[-s|--system]}} "{{Explain this code}}"` `llm {{[-s|--system]}} "{{Explain this code}}" < {{path/to/file.py}}`
- Install packages from PyPI into the same environment as LLM: - Install packages from PyPI into the same environment as LLM:

View file

@ -13,4 +13,4 @@
- Read an IR file from `stdin` and assemble it: - Read an IR file from `stdin` and assemble it:
`cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}` `llvm-as -o {{path/to/out.bc}} < {{path/to/source.ll}}`

View file

@ -13,4 +13,4 @@
- Read a Bitcode file from `stdin` and analyze it: - Read a Bitcode file from `stdin` and analyze it:
`cat {{path/to/file.bc}} | llvm-bcanalyzer` `llvm-bcanalyzer < {{path/to/file.bc}}`

View file

@ -10,7 +10,7 @@
- Convert a graph using `stdin` and `stdout`: - Convert a graph using `stdin` and `stdout`:
`cat {{input.mm}} | mm2gv > {{output.gv}}` `mm2gv > {{output.gv}} < {{input.mm}}`
- Display help: - Display help:

View file

@ -13,7 +13,7 @@
- Decrypt the content of a file, with a custom output color: - Decrypt the content of a file, with a custom output color:
`cat {{path/to/file}} | nms -a -f {{blue|white|yellow|black|magenta|green|red}}` `nms -a -f {{blue|white|yellow|black|magenta|green|red}} < {{path/to/file}}`
- Clear the screen before decrypting: - Clear the screen before decrypting:

View file

@ -21,7 +21,7 @@
- Break `stdin` into ~1M blocks, feed each block to `stdin` of new command: - Break `stdin` into ~1M blocks, feed each block to `stdin` of new command:
`cat {{big_file.txt}} | parallel --pipe --block 1M {{command}}` `parallel --pipe --block 1M {{command}} < {{big_file.txt}}`
- Run on multiple machines via SSH: - Run on multiple machines via SSH:

View file

@ -18,7 +18,7 @@
- Receive an image from `stdin` and display detailed information: - Receive an image from `stdin` and display detailed information:
`cat {{path/to/image.png}} | pngcheck -cvt` `pngcheck -cvt < {{path/to/image.png}}`
- [s]earch for PNGs within a specific file and display information about them: - [s]earch for PNGs within a specific file and display information about them:

View file

@ -21,7 +21,7 @@
- Set a value for a configuration key from a file: - Set a value for a configuration key from a file:
`cat {{path/to/file}} | pulumi config set {{key}}` `pulumi config set {{key}} < {{path/to/file}}`
- Set a secret value (e.g. API key) for a configuration key and store/display as ciphertext: - Set a secret value (e.g. API key) for a configuration key and store/display as ciphertext:

View file

@ -5,24 +5,24 @@
- Transform a raw HTML file into a cleaned, indented, and colored format: - Transform a raw HTML file into a cleaned, indented, and colored format:
`cat {{index.html}} | pup --color` `pup --color < {{index.html}}`
- Filter HTML by element tag name: - Filter HTML by element tag name:
`cat {{index.html}} | pup '{{tag}}'` `pup '{{tag}}' < {{index.html}}`
- Filter HTML by ID: - Filter HTML by ID:
`cat {{index.html}} | pup '{{div#id}}'` `pup '{{div#id}}' < {{index.html}}`
- Filter HTML by attribute value: - Filter HTML by attribute value:
`cat {{index.html}} | pup '{{input[type="text"]}}'` `pup '{{input[type="text"]}}' < {{index.html}}`
- Print all text from the filtered HTML elements and their children: - Print all text from the filtered HTML elements and their children:
`cat {{index.html}} | pup '{{div}} text{}'` `pup '{{div}} text{}' < {{index.html}}`
- Print HTML as JSON: - Print HTML as JSON:
`cat {{index.html}} | pup '{{div}} json{}'` `pup '{{div}} json{}' < {{index.html}}`

View file

@ -5,7 +5,7 @@
- Append file content to the source file: - Append file content to the source file:
`cat {{path/to/file}} | sponge -a {{path/to/file}}` `sponge -a {{path/to/file}} < {{path/to/file}}`
- Remove all lines starting with # in a file: - Remove all lines starting with # in a file:

View file

@ -13,4 +13,4 @@
- Format a file read from `stdin` and print to `stdout`: - Format a file read from `stdin` and print to `stdout`:
`cat {{path/to/file.tex}} | tex-fmt --stdin` `tex-fmt --stdin < {{path/to/file.tex}}`

View file

@ -17,7 +17,7 @@
- Read data from `stdin`: - Read data from `stdin`:
`cat {{path/to/file}} | textql -sql "{{SELECT * FROM stdin}}"` `textql -sql "{{SELECT * FROM stdin}}" < {{path/to/file}}`
- Join two files on a specified common column: - Join two files on a specified common column:

View file

@ -13,7 +13,7 @@
- Add a key from `stdin`: - Add a key from `stdin`:
`cat {{path/to/key.gpg}} | sudo tlmgr key add -` `sudo tlmgr key add - < {{path/to/key.gpg}}`
- Remove a specific key by its ID: - Remove a specific key by its ID:

View file

@ -17,4 +17,4 @@
- Convert existing timestamps in a text file (eg. a log file) into [r]elative format: - Convert existing timestamps in a text file (eg. a log file) into [r]elative format:
`cat {{path/to/file}} | ts -r` `ts -r < {{path/to/file}}`

View file

@ -21,7 +21,7 @@
- Check the style from `stdin`, specifying markup format: - Check the style from `stdin`, specifying markup format:
`cat {{file.md}} | vale --ext=.md` `vale --ext=.md < {{file.md}}`
- List the current configuration: - List the current configuration:

View file

@ -9,7 +9,7 @@
- Convert a PYX document from `stdin` to XML format: - Convert a PYX document from `stdin` to XML format:
`cat {{path/to/input.pyx}} | xml {{[p2x|depyx]}} > {{path/to/output.xml}}` `xml {{[p2x|depyx]}} > {{path/to/output.xml}} < {{path/to/input.pyx}}`
- Display help: - Display help:

View file

@ -17,7 +17,7 @@
- Format an XML document from `stdin`, removing the `DOCTYPE` declaration: - Format an XML document from `stdin`, removing the `DOCTYPE` declaration:
`cat {{path\to\input.xml}} | xml {{[fo|format]}} {{[-D|--dropdtd]}} > {{path/to/output.xml}}` `xml {{[fo|format]}} {{[-D|--dropdtd]}} > {{path/to/output.xml}} < {{path\to\input.xml}}`
- Format an XML document, omitting the XML declaration: - Format an XML document, omitting the XML declaration:

View file

@ -9,7 +9,7 @@
- Convert an XML document from `stdin` to PYX format: - Convert an XML document from `stdin` to PYX format:
`cat {{path/to/input.xml}} | xml pyx > {{path/to/output.pyx}}` `xml pyx > {{path/to/output.pyx}} < {{path/to/input.xml}}`
- Display help: - Display help:

View file

@ -5,7 +5,7 @@
- Generate a Go struct from a given XML from `stdin` and display output on `stdout`: - Generate a Go struct from a given XML from `stdin` and display output on `stdout`:
`cat {{path/to/input.xml}} | zek` `zek < {{path/to/input.xml}}`
- Generate a Go struct from a given XML from `stdin` and send output to a file: - Generate a Go struct from a given XML from `stdin` and send output to a file:
@ -13,4 +13,4 @@
- Generate an example Go program from a given XML from `stdin` and send output to a file: - Generate an example Go program from a given XML from `stdin` and send output to a file:
`cat {{path/to/input.xml}} | zek -p -o {{path/to/output.go}}` `zek -p -o {{path/to/output.go}} < {{path/to/input.xml}}`

View file

@ -9,7 +9,7 @@
- Play the mp3 from `stdin`: - Play the mp3 from `stdin`:
`cat {{file.mp3}} | mpg123 -` `mpg123 - < {{file.mp3}}`
- Jump forward to the next song: - Jump forward to the next song:

View file

@ -6,15 +6,15 @@
- Read a text file at a specific speed: - Read a text file at a specific speed:
`cat {{path/to/file.txt}} | speedread -wpm {{250}}` `speedread -wpm {{250}} < {{path/to/file.txt}}`
- Resume from a specific line: - Resume from a specific line:
`cat {{path/to/file.txt}} | speedread -resume {{5}}` `speedread -resume {{5}} < {{path/to/file.txt}}`
- Show multiple words at a time: - Show multiple words at a time:
`cat {{path/to/file.txt}} | speedread -multiword` `speedread -multiword < {{path/to/file.txt}}`
- Slow down by 10% during the reading session: - Slow down by 10% during the reading session:

View file

@ -29,7 +29,7 @@
- Merge the authorization entries from a specific file into the authorization database: - Merge the authorization entries from a specific file into the authorization database:
`cat {{path/to/file}} | xauth merge -` `xauth merge - < {{path/to/file}}`
- Display help: - Display help:

View file

@ -9,7 +9,7 @@
- Use the contents of a file as input of the clipboard: - Use the contents of a file as input of the clipboard:
`cat {{path/to/file}} | xsel {{[-ib|--input --clipboard]}}` `xsel {{[-ib|--input --clipboard]}} < {{path/to/file}}`
- Output the clipboard's contents into the terminal (equivalent to `<Ctrl v>`): - Output the clipboard's contents into the terminal (equivalent to `<Ctrl v>`):