mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
*: fix standard stream format (#18952)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
`atool {{[-X|--extract-to]}} {{path/to/output_directory}} {{archive.rar}}`
|
||||
|
||||
- Display a specific file's content from an archive to standard output (like `cat`):
|
||||
- Display a specific file's content from an archive to `stdout` (like `cat`):
|
||||
|
||||
`atool {{[-c|--cat]}} {{archive.tar}} {{path/to/file_in_archive.txt}}`
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
`elasticsearch-keystore add {{setting_name}}`
|
||||
|
||||
- Add a setting from standard input:
|
||||
- Add a setting from `stdin`:
|
||||
|
||||
`echo "{{setting_value}}" | elasticsearch-keystore add --stdin {{setting_name}}`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
`kubectl cluster-info`
|
||||
|
||||
- Dump current cluster state to standard output (for debugging):
|
||||
- Dump current cluster state to `stdout` (for debugging):
|
||||
|
||||
`kubectl cluster-info dump`
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
`kubectl proxy {{[-p|--port]}} {{port}} {{[-w|--www]}} {{path/to/static_dir}}`
|
||||
|
||||
- Run a proxy on a random local port, printing the chosen port to stdout:
|
||||
- Run a proxy on a random local port, printing the chosen port to `stdout`:
|
||||
|
||||
`kubectl proxy {{[-p|--port]}} 0`
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
`llvm-mc -o {{path/to/output.s}} {{path/to/input.bc}}`
|
||||
|
||||
- Assemble assembly code from standard input stream and show encoding to standard output stream:
|
||||
- Assemble assembly code from `stdin` and show encoding to `stdout`:
|
||||
|
||||
`echo "{{addl %eax, %ebx}}" | llvm-mc -show-encoding -show-inst`
|
||||
|
||||
- Disassemble machine code from standard input stream for specified triple:
|
||||
- Disassemble machine code from `stdin` for specified triple:
|
||||
|
||||
`echo "{{0xCD 0x21}}" | llvm-mc --disassemble -triple={{target_name}}`
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
`pkl eval {{module.pkl}}`
|
||||
|
||||
- Run as a server that communicates over standard input/output:
|
||||
- Run as a server that communicates over `stdin` and `stdout`:
|
||||
|
||||
`pkl server`
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
|
||||
`python -m json.tool {{path/to/file.json}}`
|
||||
|
||||
- Validate and pretty-print JSON from standard input:
|
||||
- Validate and pretty-print JSON from `stdin`:
|
||||
|
||||
`echo '{{{"key": "value"}}}' | python -m json.tool`
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
`sudo socat - TCP-LISTEN:8080,fork`
|
||||
|
||||
- Listen on a port using SSL and print to STDOUT:
|
||||
- Listen on a port using SSL and print to `stdout`:
|
||||
|
||||
`sudo socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
`st {{path/to/file}}`
|
||||
|
||||
- Print statistics from standard input:
|
||||
- Print statistics from `stdin`:
|
||||
|
||||
`cat {{path/to/file}} | st`
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
`sudo aa-decode {{logfile}}`
|
||||
|
||||
- Decode logs from standard input (e.g., redirected file):
|
||||
- Decode logs from `stdin` (e.g., redirected file):
|
||||
|
||||
`sudo aa-decode - < {{logfile}}`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
`patool list {{path/to/archive}}`
|
||||
|
||||
- Compare the contents of two archives and display the differences in the standard output:
|
||||
- Compare the contents of two archives and display the differences in `stdout`:
|
||||
|
||||
`patool diff {{path/to/archive1}} {{path/to/archive2}}`
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# rargs
|
||||
|
||||
> Execute a command for each line of standard input.
|
||||
> Execute a command for each line of `stdin`.
|
||||
> Like `xargs`, but with pattern matching support.
|
||||
> More information: <https://github.com/lotabout/rargs>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user