pages*: add backticks to every io stream (#10442)
* pages*: add backticks to every io stream
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
|
||||
`bb -f {{path/to/script.clj}}`
|
||||
|
||||
- Bind input to a sequence of lines from stdin:
|
||||
- Bind input to a sequence of lines from `stdin`:
|
||||
|
||||
`printf "first\nsecond" | bb -i "(map clojure.string/capitalize *input*)"`
|
||||
|
||||
- Bind input to a sequence of EDN(Extensible Data Notation) values from stdin:
|
||||
- Bind input to a sequence of EDN(Extensible Data Notation) values from `stdin`:
|
||||
|
||||
`echo "{:key 'val}" | bb -I "(:key (first *input*))"`
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
`md-to-clip --output-directory {{path/to/directory}} {{path/to/page1.md path/to/page2.md ...}}`
|
||||
|
||||
- Convert a tldr-page file to stdout:
|
||||
- Convert a tldr-page file to `stdout`:
|
||||
|
||||
`md-to-clip --no-file-save <(echo '{{page-content}}')`
|
||||
|
||||
|
@@ -16,6 +16,6 @@
|
||||
|
||||
`nix build {{./path/to/directory}}`
|
||||
|
||||
- Build a package without making the `result` symlink, instead printing the store path to the stdout:
|
||||
- Build a package without making the `result` symlink, instead printing the store path to the `stdout`:
|
||||
|
||||
`nix build --no-link --print-out-paths`
|
||||
|
@@ -7,6 +7,6 @@
|
||||
|
||||
`nix edit {{nixpkgs#pkg}}`
|
||||
|
||||
- Dump the source of a package to stdout:
|
||||
- Dump the source of a package to `stdout`:
|
||||
|
||||
`EDITOR=cat nix edit {{nixpkgs#pkg}}`
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
`prqlc compile`
|
||||
|
||||
- Compile a specific `.prql` file to stdout:
|
||||
- Compile a specific `.prql` file to `stdout`:
|
||||
|
||||
`prqlc compile {{path/to/file.prql}}`
|
||||
|
||||
|
@@ -4,11 +4,11 @@
|
||||
> Note: You will likely need to know XPath: <https://developer.mozilla.org/en-US/docs/Web/XPath>.
|
||||
> More information: <https://xmlstar.sourceforge.net/docs.php>.
|
||||
|
||||
- Format an XML document and print to stdout:
|
||||
- Format an XML document and print to `stdout`:
|
||||
|
||||
`xmlstarlet format {{path/to/file.xml}}`
|
||||
|
||||
- XML document can also be piped from stdin:
|
||||
- XML document can also be piped from `stdin`:
|
||||
|
||||
`{{cat path/to/file.xml}} | xmlstarlet format`
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
`xmlstarlet select --template --copy-of {{xpath}} {{path/to/file.xml}}`
|
||||
|
||||
- Insert an attribute to all matching nodes, and print to stdout (source file is unchanged):
|
||||
- Insert an attribute to all matching nodes, and print to `stdout` (source file is unchanged):
|
||||
|
||||
`xmlstarlet edit --insert {{xpath}} --type attr --name {{attribute_name}} --value {{attribute_value}} {{path/to/file.xml}}`
|
||||
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
`zsh --no-exec {{path/to/script.zsh}}`
|
||||
|
||||
- Execute specific commands from stdin:
|
||||
- Execute specific commands from `stdin`:
|
||||
|
||||
`{{echo Hello world}} | zsh`
|
||||
|
||||
|
@@ -7,6 +7,6 @@
|
||||
|
||||
`goobook authenticate`
|
||||
|
||||
- Dump all contacts to XML (stdout):
|
||||
- Dump all contacts to XML (`stdout`):
|
||||
|
||||
`goobook dump_contacts`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# qm vncproxy
|
||||
|
||||
> Proxy Virtual Machine VNC (Virtual network computing) traffic to stdin/stdout.
|
||||
> Proxy Virtual Machine VNC (Virtual network computing) traffic to `stdin` or `stdout`.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
||||
|
||||
- Proxy a specific virtual machine:
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
`xauth remove {{display_name}}`
|
||||
|
||||
- Print the authorization entry for the current display to stdout:
|
||||
- Print the authorization entry for the current display to `stdout`:
|
||||
|
||||
`xauth extract - $DISPLAY`
|
||||
|
||||
|
@@ -21,6 +21,6 @@
|
||||
|
||||
`Select-String --Context {{2,3}} "{{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:
|
||||
|
||||
`Get-Content {{path\to\file}} | Select-String --NotMatch "{{search_pattern}}"`
|
||||
|
@@ -4,7 +4,7 @@
|
||||
> This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/test-json>.
|
||||
|
||||
- Test if a string from stdin is in JSON format:
|
||||
- Test if a string from `stdin` is in JSON format:
|
||||
|
||||
`'{{string}}' | Test-Json`
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
|
||||
`Test-Json -Json '{{json_to_test}}'`
|
||||
|
||||
- Test if a string from stdin matches a specific schema file:
|
||||
- Test if a string from `stdin` matches a specific schema file:
|
||||
|
||||
`'{{string}}' | Test-Json -SchemaFile {{path\to\schema_file.json}}`
|
||||
|
Reference in New Issue
Block a user