*: always backquote `stdin`, `stdout` and `stderr` (#9584)

pull/1/head
pixel 2022-12-04 08:53:34 +01:00 committed by GitHub
parent 5f7fd20ee2
commit ab7a36fbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
165 changed files with 207 additions and 207 deletions

View File

@ -19,7 +19,7 @@
`7z x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to stdout:
- E[x]tract an archive to `stdout`:
`7z x {{path/to/archive.7z}} -so`

View File

@ -20,7 +20,7 @@
`7za x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to stdout:
- E[x]tract an archive to `stdout`:
`7za x {{path/to/archive.7z}} -so`

View File

@ -20,7 +20,7 @@
`7zr x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to stdout:
- E[x]tract an archive to `stdout`:
`7zr x {{path/to/archive.7z}} -so`

View File

@ -7,7 +7,7 @@
`age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
- Generate a key pair, saving the private key to an unencrypted file and printing the public key to stdout:
- Generate a key pair, saving the private key to an unencrypted file and printing the public key to `stdout`:
`age-keygen --output {{path/to/file}}`

View File

@ -7,7 +7,7 @@
`ajson '{{$..json[?(@.path)]}}' {{path/to/file.json}}`
- 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)]}}'`

View File

@ -4,7 +4,7 @@
> It helps you find gender favouring, polarising, race related, religion inconsiderate, or other unequal phrasing in text.
> More information: <https://github.com/get-alex/alex>.
- Analyze text from stdin:
- Analyze text from `stdin`:
`echo {{His network looks good}} | alex --stdin`

View File

@ -7,7 +7,7 @@
`autoconf`
- Generate a configuration script from the specified template; output to stdout:
- Generate a configuration script from the specified template; output to `stdout`:
`autoconf {{template-file}}`

View File

@ -3,7 +3,7 @@
> Format Python code according to the PEP 8 style guide.
> More information: <https://github.com/hhatto/autopep8>.
- Format a file to stdout, with a custom maximum line length:
- Format a file to `stdout`, with a custom maximum line length:
`autopep8 {{path/to/file.py}} --max-line-length {{length}}`

View File

@ -11,7 +11,7 @@
`b2sum {{path/to/file1}} {{path/to/file2}}`
- Calculate the BLAKE2 checksum from stdin:
- Calculate the BLAKE2 checksum from `stdin`:
`{{some_command}} | b2sum`

View File

@ -3,7 +3,7 @@
> A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.
> More information: <https://babeljs.io/>.
- Transpile a specified input file and output to stdout:
- Transpile a specified input file and output to `stdout`:
`babel {{path/to/file}}`

View File

@ -11,6 +11,6 @@
`banner -w {{50}} "{{Hello World}}"`
- Read text from stdin:
- Read text from `stdin`:
`banner`

View File

@ -11,10 +11,10 @@
`base32 --decode {{filename}}`
- Encode from stdin:
- Encode from `stdin`:
`{{somecommand}} | base32`
- Decode from stdin:
- Decode from `stdin`:
`{{somecommand}} | base32 --decode`

View File

@ -3,18 +3,18 @@
> Encode or decode file or standard input to/from Base64, to standard output.
> More information: <https://www.gnu.org/software/coreutils/base64>.
- Encode the contents of a file as base64 and write the result to stdout:
- Encode the contents of a file as base64 and write the result to `stdout`:
`base64 {{filename}}`
- Decode the base64 contents of a file and write the result to stdout:
- Decode the base64 contents of a file and write the result to `stdout`:
`base64 --decode {{filename}}`
- Encode from stdin:
- Encode from `stdin`:
`{{somecommand}} | base64`
- Decode from stdin:
- Decode from `stdin`:
`{{somecommand}} | base64 --decode`

View File

@ -28,6 +28,6 @@
`bash -e {{path/to/script.sh}}`
- Execute specific commands from stdin:
- Execute specific commands from `stdin`:
`{{echo "echo 'bash is executed'"}} | bash`

View File

@ -19,7 +19,7 @@
`black --diff {{path/to/file_or_directory}}`
- Auto-format a file or directory, emitting exclusively error messages to stderr:
- Auto-format a file or directory, emitting exclusively error messages to `stderr`:
`black --quiet {{path/to/file_or_directory}}`

View File

@ -3,7 +3,7 @@
> Pretty-print Haskell source files.
> More information: <https://github.com/lspitzner/brittany#readme>.
- Format a Haskell source file and print the result to stdout:
- Format a Haskell source file and print the result to `stdout`:
`brittany {{path/to/file.hs}}`

View File

@ -27,6 +27,6 @@
`bzgrep --recursive "{{search_pattern}}" {{path/to/tar/file}}`
- 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 --invert-match "{{search_pattern}}"`

View File

@ -16,7 +16,7 @@
`circo -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | circo -T {{gif}} > {{path/to/image.gif}}`

View File

@ -7,7 +7,7 @@
`clamdscan {{path/to/file_or_directory}}`
- Scan data from stdin:
- Scan data from `stdin`:
`{{command}} | clamdscan -`

View File

@ -11,7 +11,7 @@
`clamscan -r {{path/to/directory}}`
- Scan data from stdin:
- Scan data from `stdin`:
`{{command}} | clamscan -`

View File

@ -3,7 +3,7 @@
> Tool to auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
> More information: <https://clang.llvm.org/docs/ClangFormat.html>.
- Format a file and print the result to stdout:
- Format a file and print the result to `stdout`:
`clang-format {{path/to/file}}`

View File

@ -4,7 +4,7 @@
> Any mouse gesture except left click will exit the program.
> More information: <https://github.com/ym1234/colorpicker>.
- Launch colorpicker and print the hexadecimal and RGB value of each clicked pixel to stdout:
- Launch colorpicker and print the hexadecimal and RGB value of each clicked pixel to `stdout`:
`colorpicker`

View File

@ -11,7 +11,7 @@
`comm -12 {{file1}} {{file2}}`
- 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}}`

View File

@ -7,7 +7,7 @@
`cowsay "{{hello, world}}"`
- Print an ASCII cow saying text from stdin:
- Print an ASCII cow saying text from `stdin`:
`echo "{{hello, world}}" | cowsay`

View File

@ -1,6 +1,6 @@
# cut
> Cut out fields from stdin or files.
> Cut out fields from `stdin` or files.
> More information: <https://www.gnu.org/software/coreutils/cut>.
- Print a specific character/field range of each line:

View File

@ -27,6 +27,6 @@
`dash -e {{path/to/script.sh}}`
- Execute specific commands from stdin:
- Execute specific commands from `stdin`:
`{{echo "echo 'dash is executed'"}} | dash`

View File

@ -11,7 +11,7 @@
`diffoscope --no-progress {{path/to/file1}} {{path/to/file2}}`
- Compare two files and write an HTML-report to a file (use `-` for stdout):
- Compare two files and write an HTML-report to a file (use `-` for `stdout`):
`diffoscope --html {{path/to/outfile|-}} {{path/to/file1}} {{path/to/file2}}`

View File

@ -15,7 +15,7 @@
`docker exec --interactive -tty --workdir {{path/to/directory}} {{container_name}} {{command}}`
- Run a command in background on existing container but keep stdin open:
- Run a command in background on existing container but keep `stdin` open:
`docker exec --interactive --detach {{container_name}} {{command}}`

View File

@ -1,9 +1,9 @@
# docker load
> Load Docker images from files or stdin.
> Load Docker images from files or `stdin`.
> More information: <https://docs.docker.com/engine/reference/commandline/load/>.
- Load a Docker image from stdin:
- Load a Docker image from `stdin`:
`docker load < {{path/to/image_file.tar}}`

View File

@ -15,6 +15,6 @@
`docker login --username {{username}} --password {{password}} {{server}}`
- Log into a registry with password from stdin:
- Log into a registry with password from `stdin`:
`echo "{{password}}" | docker login --username {{username}} --password-stdin`

View File

@ -3,7 +3,7 @@
> Export one or more docker images to archive.
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
- Save an image by redirecting stdout to a tar archive:
- Save an image by redirecting `stdout` to a tar archive:
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`

View File

@ -3,7 +3,7 @@
> Manage Docker swarm secrets.
> More information: <https://docs.docker.com/engine/reference/commandline/secret/>.
- Create a new secret from stdin:
- Create a new secret from `stdin`:
`{{command}} | docker secret create {{secret_name}} -`

View File

@ -11,7 +11,7 @@
`docker start {{container}}`
- Start a container, attaching stdout and stderr and forwarding signals:
- Start a container, attaching `stdout` and `stderr` and forwarding signals:
`docker start --attach {{container}}`

View File

@ -16,7 +16,7 @@
`dot -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | dot -T {{gif}} > {{path/to/image.gif}}`

View File

@ -11,7 +11,7 @@
`egrep "{{search_pattern}}" {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}`
- Search stdin for a pattern:
- Search `stdin` for a pattern:
`cat {{path/to/file}} | egrep {{search_pattern}}`

View File

@ -16,7 +16,7 @@
`emacsclient --create-frame {{path/to/file}}`
- Evaluate a command, printing the output to stdout, and then quit:
- Evaluate a command, printing the output to `stdout`, and then quit:
`emacsclient --eval '({{command}})'`

View File

@ -4,11 +4,11 @@
> Variables to be replaced should be in either `${var}` or `$var` format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html>.
- Replace environment variables in stdin and output to stdout:
- Replace environment variables in `stdin` and output to `stdout`:
`echo '{{$HOME}}' | envsubst`
- Replace environment variables in an input file and output to stdout:
- Replace environment variables in an input file and output to `stdout`:
`envsubst < {{path/to/input_file}}`

View File

@ -3,11 +3,11 @@
> JavaScript bundler and minifier built for speed.
> More information: <https://esbuild.github.io/>.
- Bundle a JavaScript application and print to stdout:
- Bundle a JavaScript application and print to `stdout`:
`esbuild --bundle {{path/to/file.js}}`
- Bundle a JSX application from stdin:
- Bundle a JSX application from `stdin`:
`esbuild --bundle --outfile={{path/to/out.js}} < {{path/to/file.jsx}}`

View File

@ -7,6 +7,6 @@
`factor {{number}}`
- Take the input from stdin if no argument is specified:
- Take the input from `stdin` if no argument is specified:
`echo {{number}} | factor`

View File

@ -16,7 +16,7 @@
`fdp -T {{ps|pdf|svg|fig|png|gif|jpg|json|dot}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | fdp -T gif > {{path/to/image.gif}}`

View File

@ -23,7 +23,7 @@
`fish --no-execute {{path/to/script.fish}}`
- Execute specific commands from stdin:
- Execute specific commands from `stdin`:
`{{echo "echo 'fish is executed'"}} | fish`

View File

@ -27,6 +27,6 @@
`ganache-cli --defaultBalanceEther={{default_balance}}`
- Run Ganache and log all requests to stdout:
- Run Ganache and log all requests to `stdout`:
`ganache-cli --verbose`

View File

@ -27,7 +27,7 @@
`gh workflow run {{id|workflow_name|filename.yml}} --raw-field {{param1}}={{value1}} --raw-field {{param2}}={{value2}}`
- Run a manual workflow using a specific branch or tag with JSON parameters from stdin:
- Run a manual workflow using a specific branch or tag with JSON parameters from `stdin`:
`echo '{{{"param1":"value1", "param2":"value2"}}}' | gh workflow run {{id|workflow_name|filename.yml}} --ref {{branch_or_tag_name}}`

View File

@ -7,7 +7,7 @@
`gibo list`
- Write a boilerplate to stdout:
- Write a boilerplate to `stdout`:
`gibo dump {{boilerplate}}`

View File

@ -15,7 +15,7 @@
`gist --private --description "{{A meaningful description}}" {{file.txt}} `
- Read contents from stdin and create a gist from it:
- Read contents from `stdin` and create a gist from it:
`{{echo "hello world"}} | gist`

View File

@ -4,7 +4,7 @@
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-authors>.
- Print a full list of committers to stdout instead of to the `AUTHORS` file:
- Print a full list of committers to `stdout` instead of to the `AUTHORS` file:
`git authors --list`

View File

@ -11,7 +11,7 @@
`git check-ignore {{path/to/file}} {{path/to/directory}}`
- Use pathnames, one per line, from stdin:
- Use pathnames, one per line, from `stdin`:
`git check-ignore --stdin < {{path/to/file_list}}`

View File

@ -8,7 +8,7 @@
`git commit-tree {{tree}} -m "{{message}}"`
- Create a commit object reading the message from a file (use `-` for stdin):
- Create a commit object reading the message from a file (use `-` for `stdin`):
`git commit-tree {{tree}} -F {{path/to/file}}`

View File

@ -8,7 +8,7 @@
`git format-patch {{origin}}`
- Write a `.patch` file for all the commits between 2 revisions to stdout:
- Write a `.patch` file for all the commits between 2 revisions to `stdout`:
`git format-patch {{revision_1}}..{{revision_2}}`

View File

@ -15,6 +15,6 @@
`git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}`
- Compute the object ID from stdin:
- Compute the object ID from `stdin`:
`cat {{path/to/file}} | git hash-object --stdin`

View File

@ -8,7 +8,7 @@
`git prune --dry-run`
- Prune unreachable objects and display what has been pruned to stdout:
- Prune unreachable objects and display what has been pruned to `stdout`:
`git prune --verbose`

View File

@ -3,7 +3,7 @@
> Show the packed archive index of a Git repository.
> More information: <https://git-scm.com/docs/git-show-index>.
- Read an IDX file for a Git packfile and dump its contents to stdout:
- Read an IDX file for a Git packfile and dump its contents to `stdout`:
`git show-index {{path/to/file.idx}}`

View File

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

View File

@ -3,7 +3,7 @@
> Utility to annotate console logging statements with timestamps and find slow processes.
> More information: <https://github.com/paypal/gnomon>.
- Use UNIX (or DOS) pipes to pipe the stdout of any command through gnomon:
- Use UNIX (or DOS) pipes to pipe the `stdout` of any command through gnomon:
`{{npm test}} | gnomon`

View File

@ -20,7 +20,7 @@
`gpg --symmetric {{doc.txt}}`
- Decrypt `doc.txt.gpg` (output to stdout):
- Decrypt `doc.txt.gpg` (output to `stdout`):
`gpg --decrypt {{doc.txt.gpg}}`
@ -28,10 +28,10 @@
`gpg --import {{public.gpg}}`
- Export public key for alice@example.com (output to stdout):
- Export public key for alice@example.com (output to `stdout`):
`gpg --export --armor {{alice@example.com}}`
- Export private key for alice@example.com (output to stdout):
- Export private key for alice@example.com (output to `stdout`):
`gpg --export-secret-keys --armor {{alice@example.com}}`

View File

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

View File

@ -31,6 +31,6 @@
`grep --only-matching "{{search_pattern}}" {{path/to/file}}`
- 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 --invert-match "{{search_pattern}}"`

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@
`help2man {{executable}} --section {{section}}`
- Output to a file instead of stdout:
- Output to a file instead of `stdout`:
`help2man {{executable}} --output {{path/to/file}}`

View File

@ -27,6 +27,6 @@
`http --auth {{username:password}} {{example.org}}`
- Specify raw request body via stdin:
- Specify raw request body via `stdin`:
`cat {{data.txt}} | http PUT {{example.org}}`

View File

@ -3,7 +3,7 @@
> Converts text from one encoding to another.
> More information: <https://manned.org/iconv>.
- Convert file to a specific encoding, and print to stdout:
- Convert file to a specific encoding, and print to `stdout`:
`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}`

View File

@ -3,23 +3,23 @@
> A command-line JSON processor using Python syntax.
> More information: <https://github.com/kellyjonbrazil/jello>.
- 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`
- 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`
- 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`
- 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]`
- 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 _]'`

View File

@ -19,6 +19,6 @@
`join -a {{1}} {{file1}} {{file2}}`
- Join a file from stdin:
- Join a file from `stdin`:
`cat {{path/to/file1}} | join - {{path/to/file2}}`

View File

@ -3,11 +3,11 @@
> A command-line tool for converting JSON5 files to JSON.
> More information: <https://json5.org>.
- Convert JSON5 stdin to JSON stdout:
- Convert JSON5 `stdin` to JSON `stdout`:
`echo {{input}} | json5`
- Convert a JSON5 file to JSON and output to stdout:
- Convert a JSON5 file to JSON and output to `stdout`:
`json5 {{path/to/input_file.json5}}`

View File

@ -15,7 +15,7 @@
`kcat -G {{group_id}} {{topic}} -b {{brokers}}`
- Publish message by reading from stdin:
- Publish message by reading from `stdin`:
` echo {{message}} | kcat -P -t {{topic}} -b {{brokers}}`

View File

@ -1,17 +1,17 @@
# keep-header
> Keep first line untouched by a command, passing it directly to stdout.
> Keep first line untouched by a command, passing it directly to `stdout`.
> More information: <https://github.com/eBay/tsv-utils#keep-header>.
- Sort a file and keep the first line at the top:
`keep-header {{path/to/file}} -- sort`
- Output first line directly to stdout, passing the remainder of the file through the specified command:
- Output first line directly to `stdout`, passing the remainder of the file through the specified command:
`keep-header {{path/to/file}} -- {{command}}`
- 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}}`

View File

@ -19,6 +19,6 @@
`kitty +kitten icat {{path/to/image}}`
- Copy the contents of stdin to the clipboard:
- Copy the contents of `stdin` to the clipboard:
`echo {{example}} | kitty +kitten clipboard`

View File

@ -12,7 +12,7 @@
`lebab --transform {{transformation}}`
- Transpile a file to stdout:
- Transpile a file to `stdout`:
`lebab {{path/to/input_file}}`

View File

@ -3,7 +3,7 @@
> Create license files for open-source projects.
> More information: <https://nishanths.github.io/license>.
- Print a license to stdout, using the defaults (auto-detected author name, and current year):
- Print a license to `stdout`, using the defaults (auto-detected author name, and current year):
`license {{license_name}}`

View File

@ -1,6 +1,6 @@
# licensor
> Write licenses to stdout.
> Write licenses to `stdout`.
> More information: <https://github.com/raftario/licensor>.
- Write the MIT license to a file named `LICENSE`:

View File

@ -15,7 +15,7 @@
`lighthouse --output {{json}} --output-path {{path/to/file.json}} {{https://example.com}}`
- Generate a report using the browser in headless mode without logging to stdout:
- Generate a report using the browser in headless mode without logging to `stdout`:
`lighthouse --quiet --chrome-flags="{{--headless}}" {{https://example.com}}`

View File

@ -3,7 +3,7 @@
> Converts LLVM bitcode files into human-readable LLVM Intermediate Representation (IR).
> More information: <https://www.llvm.org/docs/CommandGuide/llvm-dis.html>.
- Convert a bitcode file as LLVM IR and write the result to stdout:
- Convert a bitcode file as LLVM IR and write the result to `stdout`:
`llvm-dis {{path/to/input.bc}} -o -`

View File

@ -7,7 +7,7 @@
`logger {{message}}`
- Take input from stdin and log to syslog:
- Take input from `stdin` and log to syslog:
`echo {{log_entry}} | logger`

View File

@ -11,7 +11,7 @@
`lz4 -d {{file.lz4}}`
- Decompress a file and write to stdout:
- Decompress a file and write to `stdout`:
`lz4 -dc {{file.lz4}}`

View File

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

View File

@ -3,7 +3,7 @@
> Produce exports of data stored in a MongoDB instance formatted as JSON or CSV.
> More information: <https://docs.mongodb.com/database-tools/mongoexport/>.
- Export a collection to stdout, formatted as JSON:
- Export a collection to `stdout`, formatted as JSON:
`mongoexport --uri={{connection_string}} --collection={{collection_name}}`
@ -23,7 +23,7 @@
`mongoexport --collection={{collection_name}} --type={{csv}} --fields="{{field1,field2,...}}" --queryFile={{path/to/file}} --noHeaderLine --out={{path/to/file.csv}}`
- Export documents to stdout, formatted as human-readable JSON:
- Export documents to `stdout`, formatted as human-readable JSON:
`mongoexport --uri={{mongodb_uri}} --collection={{collection_name}} --pretty`

View File

@ -19,7 +19,7 @@
`monodevelop --new-window`
- Disable redirection of stdout and stderr to a log file:
- Disable redirection of `stdout` and `stderr` to a log file:
`monodevelop --no-redirect`

View File

@ -19,10 +19,10 @@
`mosquitto_pub -t {{sensors/temperature}} -f {{data.txt}}`
- 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:
- 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 {{sensors/temperature}} -s < {{data.txt}}`
- Read newline delimited data from stdin as a message and publish it to `sensors/temperature` topic:
- Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic:
`{{echo data.txt}} | mosquitto_pub -t {{sensors/temperature}} -l`

View File

@ -16,7 +16,7 @@
`neato -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{graph {this -- that} }}" | neato -T {{gif}} > {{path/to/image.gif}}`

View File

@ -1,6 +1,6 @@
# nms
> Command-line tool that recreates the famous data decryption effect seen in the 1992 movie Sneakers from stdin.
> Command-line tool that recreates the famous data decryption effect seen in the 1992 movie Sneakers from `stdin`.
> More information: <https://github.com/bartobri/no-more-secrets>.
- Decrypt text after a keystroke:

View File

@ -3,7 +3,7 @@
> OpenSSL command to generate RSA private keys.
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-genrsa.html>.
- Generate an RSA private key of 2048 bits to stdout:
- Generate an RSA private key of 2048 bits to `stdout`:
`openssl genrsa`

View File

@ -16,7 +16,7 @@
`osage -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | osage -T {{gif}} > {{path/to/image.gif}}`

View File

@ -7,7 +7,7 @@
`parallel gzip ::: {{file1}} {{file2}} {{file3}}`
- Read arguments from stdin, run 4 jobs at once:
- Read arguments from `stdin`, run 4 jobs at once:
`ls *.txt | parallel -j4 gzip`
@ -19,7 +19,7 @@
`{{args}} | parallel -X {{command}}`
- 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}}`

View File

@ -16,7 +16,7 @@
`patchwork -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using stdin and stdout:
- Render a `gif` image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | patchwork -T {{gif}} > {{path/to/image.gif}}`

View File

@ -27,10 +27,10 @@
`perl -p -e 's/{{foo\nbar}}/{{foobar}}/g' {{path/to/input_file}} > {{path/to/output_file}}`
- Run a regular [e]xpression on stdin, printing matching [l]ines:
- Run a regular [e]xpression on `stdin`, printing matching [l]ines:
`cat {{path/to/file}} | perl -n -l -e 'print if /{{regular_expression}}/'`
- Run a regular [e]xpression on stdin, printing only the first capture group for each matching [l]ine:
- Run a regular [e]xpression on `stdin`, printing only the first capture group for each matching [l]ine:
`cat {{path/to/file}} | perl -n -l -e 'print $1 if /{{before}}({{regular_expression}}){{after}}/'`

View File

@ -15,7 +15,7 @@
`pest --group {{name}}`
- Run tests and print the coverage report to stdout:
- Run tests and print the coverage report to `stdout`:
`pest --coverage`

View File

@ -23,7 +23,7 @@
`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{rulesets}} --exclude {{directory_patterns}}`
- Output the results to a file instead of stdout:
- Output the results to a file instead of `stdout`:
`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{rulesets}} --reportfile {{path/to/report_file}}`

View File

@ -15,7 +15,7 @@
`pngcheck -cvt {{image.png}}`
- 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`

View File

@ -3,7 +3,7 @@
> An opinionated code formatter for JavaScript, JSON, CSS, YAML, and more.
> More information: <https://prettier.io/>.
- Format a file and print the result to stdout:
- Format a file and print the result to `stdout`:
`prettier {{path/to/file}}`

View File

@ -7,7 +7,7 @@
`pretty-bytes {{1337}}`
- Convert numeric bytes value from stdin to a human-readable string:
- Convert numeric bytes value from `stdin` to a human-readable string:
`echo {{1337}} | pretty-bytes`

View File

@ -11,7 +11,7 @@
`promtool check rules {{rules_file.yml}}`
- Pass Prometheus metrics over stdin to check them for consistency and correctness:
- Pass Prometheus metrics over `stdin` to check them for consistency and correctness:
`curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics`

View File

@ -4,10 +4,10 @@
> See also: `pueue log`.
> More information: <https://github.com/Nukesor/pueue>.
- Follow the output of a task (stdout + stderr):
- Follow the output of a task (`stdout` + `stderr`):
`pueue follow {{task_id}}`
- Follow the stderr of a task:
- Follow the `stderr` of a task:
`pueue follow --err {{task_id}}`

View File

@ -15,7 +15,7 @@
`q -d{{delimiter}} -H "SELECT * from {{path/to/file}}"`
- Read data from stdin; '-' in the query represents the data from stdin:
- Read data from `stdin`; '-' in the query represents the data from `stdin`:
`{{output}} | q "select * from -"`

View File

@ -19,6 +19,6 @@
`qutebrowser --target {{auto|tab|tab-bg|tab-silent|tab-bg-silent|window|private-window}}`
- Open qutebrowser with a temporary base directory and print logs to stdout as JSON:
- Open qutebrowser with a temporary base directory and print logs to `stdout` as JSON:
`qutebrowser --temp-basedir --json-logging`

View File

@ -25,6 +25,6 @@
`rbash -e {{path/to/script.sh}}`
- Read and execute commands from stdin:
- Read and execute commands from `stdin`:
`rbash -s`

View File

@ -27,10 +27,10 @@
`react-native run-android --variant={{release}}`
- Start `logkitty` and print logs to stdout:
- Start `logkitty` and print logs to `stdout`:
`react-native log-android`
- Start `tail system.log` for an iOS simulator and print logs to stdout:
- Start `tail system.log` for an iOS simulator and print logs to `stdout`:
`react-native log-ios`

View File

@ -31,6 +31,6 @@
`read -s {{variable}}`
- Read stdin and perform an action on every line:
- Read `stdin` and perform an action on every line:
`while read line; do echo "$line"; done`

View File

@ -3,7 +3,7 @@
> Persistent key-value database.
> More information: <https://redis.io>.
- Start Redis server, using the default port (6379), and write logs to stdout:
- Start Redis server, using the default port (6379), and write logs to `stdout`:
`redis-server`

Some files were not shown because too many files have changed in this diff Show More