*: always backquote stdin
, stdout
and stderr
(#9584)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
`bluetoothd`
|
||||
|
||||
- Start the daemon, logging to stdout:
|
||||
- Start the daemon, logging to `stdout`:
|
||||
|
||||
`bluetoothd --nodetach`
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
`bluetoothd --configfile {{path/to/file}}`
|
||||
|
||||
- Start the daemon with verbose output to stderr:
|
||||
- Start the daemon with verbose output to `stderr`:
|
||||
|
||||
`bluetoothd --debug`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# chpasswd
|
||||
|
||||
> Change the passwords for multiple users by using stdin.
|
||||
> Change the passwords for multiple users by using `stdin`.
|
||||
> More information: <https://manned.org/chpasswd.8>.
|
||||
|
||||
- Change the password for a specific user:
|
||||
|
@@ -1,9 +1,9 @@
|
||||
# colrm
|
||||
|
||||
> Remove columns from stdin.
|
||||
> Remove columns from `stdin`.
|
||||
> More information: <https://manned.org/colrm>.
|
||||
|
||||
- Remove first column of stdin:
|
||||
- Remove first column of `stdin`:
|
||||
|
||||
`colrm {{1 1}}`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`dbus-daemon --address {{address}}`
|
||||
|
||||
- Output the process ID to stdout:
|
||||
- Output the process ID to `stdout`:
|
||||
|
||||
`dbus-daemon --print-pid`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`e2image {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Print metadata located on device to stdout:
|
||||
- Print metadata located on device to `stdout`:
|
||||
|
||||
`e2image {{/dev/sdXN}} -`
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
`gcov --all-blocks {{path/to/file.cpp}}`
|
||||
|
||||
- Write branch frequencies to the output file and print summary information to stdout as a percentage:
|
||||
- Write branch frequencies to the output file and print summary information to `stdout` as a percentage:
|
||||
|
||||
`gcov --branch-probabilities {{path/to/file.cpp}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`goaccess {{path/to/logfile}} --log-format={{format}}`
|
||||
|
||||
- Analyze a log from stdin:
|
||||
- Analyze a log from `stdin`:
|
||||
|
||||
`tail -f {{path/to/logfile}} | goaccess -`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Generate a GRUB configuration file.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>.
|
||||
|
||||
- Do a dry run and print the configuration to stdout:
|
||||
- Do a dry run and print the configuration to `stdout`:
|
||||
|
||||
`sudo grub-mkconfig`
|
||||
|
||||
|
@@ -4,11 +4,11 @@
|
||||
> This command is usually called from the i3 configuration file.
|
||||
> More information: <https://i3wm.org/i3status/manpage.html>.
|
||||
|
||||
- Print the status line to stdout periodically, using the default configuration:
|
||||
- Print the status line to `stdout` periodically, using the default configuration:
|
||||
|
||||
`i3status`
|
||||
|
||||
- Print the status line to stdout periodically, using a specific configuration:
|
||||
- Print the status line to `stdout` periodically, using a specific configuration:
|
||||
|
||||
`i3status -c {{path/to/i3status.conf}}`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`isoinfo -f -i {{path/to/image.iso}}`
|
||||
|
||||
- E[x]tract a specific file from an ISO image and send it out stdout:
|
||||
- E[x]tract a specific file from an ISO image and send it out `stdout`:
|
||||
|
||||
`isoinfo -i {{path/to/image.iso}} -x {{/PATH/TO/FILE/INSIDE/ISO.EXT}}`
|
||||
|
||||
|
@@ -15,22 +15,22 @@
|
||||
|
||||
`kdialog --warningyesnocancel "{{message}}"`
|
||||
|
||||
- Open an input dialog box and print the input to stdout when `OK` is pressed:
|
||||
- Open an input dialog box and print the input to `stdout` when `OK` is pressed:
|
||||
|
||||
`kdialog --inputbox "{{message}}" "{{optional_default_text}}"`
|
||||
|
||||
- Open a dialog to prompt for a specific password and print it to stdout:
|
||||
- Open a dialog to prompt for a specific password and print it to `stdout`:
|
||||
|
||||
`kdialog --password "{{message}}"`
|
||||
|
||||
- Open a dialog containing a specific dropdown menu and print the selected item to stdout:
|
||||
- Open a dialog containing a specific dropdown menu and print the selected item to `stdout`:
|
||||
|
||||
`kdialog --combobx "{{message}}" "{{item1}}" "{{item2}}" "{{...}}"`
|
||||
|
||||
- Open a file chooser dialog and print the selected file's path to stdout:
|
||||
- Open a file chooser dialog and print the selected file's path to `stdout`:
|
||||
|
||||
`kdialog --getopenfilename`
|
||||
|
||||
- Open a progressbar dialog and print a DBUS reference for communication to stdout:
|
||||
- Open a progressbar dialog and print a DBUS reference for communication to `stdout`:
|
||||
|
||||
`kdialog --progressbar "{{message}}"`
|
||||
|
@@ -19,6 +19,6 @@
|
||||
|
||||
`lslocks --pid {{PID}}`
|
||||
|
||||
- List locks with JSON output to stdout:
|
||||
- List locks with JSON output to `stdout`:
|
||||
|
||||
`lslocks --json`
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`mimetype --describe {{path/to/file}}`
|
||||
|
||||
- Determine the MIME type of stdin (does not check a filename):
|
||||
- Determine the MIME type of `stdin` (does not check a filename):
|
||||
|
||||
`{{some_command}} | mimetype --stdin`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`mpg123 {{path/to/file1.mp3 path/to/file2.mp3 ...}}`
|
||||
|
||||
- Play the mp3 from stdin:
|
||||
- Play the mp3 from `stdin`:
|
||||
|
||||
`cat {{file.mp3}} | mpg123 -`
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# rankmirrors
|
||||
|
||||
> Rank a list of Pacman mirrors by connection and opening speed.
|
||||
> Writes the new mirrorlist to stdout.
|
||||
> Writes the new mirrorlist to `stdout`.
|
||||
> More information: <https://wiki.archlinux.org/index.php/mirrors>.
|
||||
|
||||
- Rank a mirror list:
|
||||
|
@@ -15,6 +15,6 @@
|
||||
|
||||
`rofi -show window`
|
||||
|
||||
- Pipe a list of items to stdin and print the selected item to stdout:
|
||||
- Pipe a list of items to `stdin` and print the selected item to `stdout`:
|
||||
|
||||
`printf "{{Choice1\nChoice2\nChoice3}}" | rofi -dmenu`
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`runlim {{command}} {{command_arguments}}`
|
||||
|
||||
- Log statistics to a file instead of stdout:
|
||||
- Log statistics to a file instead of `stdout`:
|
||||
|
||||
`runlim --output-file={{path/to/file}} {{command}} {{command_arguments}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# ttyplot
|
||||
|
||||
> A realtime plotting utility for the command line with data input from stdin.
|
||||
> A realtime plotting utility for the command line with data input from `stdin`.
|
||||
> More information: <https://github.com/tenox7/ttyplot>.
|
||||
|
||||
- Plot the values `1`, `2` and `3` (`cat` prevents ttyplot to exit):
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Generate a WPA-PSK key from an ASCII passphrase for a given SSID.
|
||||
> More information: <https://manned.org/wpa_passphrase.1>.
|
||||
|
||||
- Compute and display the WPA-PSK key for a given SSID reading the passphrase from stdin:
|
||||
- Compute and display the WPA-PSK key for a given SSID reading the passphrase from `stdin`:
|
||||
|
||||
`wpa_passphrase {{SSID}}`
|
||||
|
||||
|
@@ -12,6 +12,6 @@
|
||||
|
||||
`xcursorgen --prefix {{path/to/image_directory/}} {{path/to/config.cursor}} {{path/to/output_file}}`
|
||||
|
||||
- Create an X cursor file using a config file and write the output to stdout:
|
||||
- Create an X cursor file using a config file and write the output to `stdout`:
|
||||
|
||||
`xcursorgen {{path/to/config.cursor}}`
|
||||
|
Reference in New Issue
Block a user