*: path/to/everything (#9589)

pull/1/head
pixel 2022-12-04 10:12:49 +01:00 committed by GitHub
parent ab7a36fbe6
commit 0d99563193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
61 changed files with 147 additions and 147 deletions

View File

@ -6,7 +6,7 @@
- Print the contents of a file to the standard output: - Print the contents of a file to the standard output:
`bat {{file}}` `bat {{path/to/file}}`
- Concatenate several files into the target file: - Concatenate several files into the target file:
@ -18,7 +18,7 @@
- Number all output lines: - Number all output lines:
`bat -n {{file}}` `bat -n {{path/to/file}}`
- Syntax highlight a JSON file: - Syntax highlight a JSON file:

View File

@ -25,7 +25,7 @@
- Extract an archive into a directory: - Extract an archive into a directory:
`betty unarchive {{archive.tar.gz}} to {{directory}}` `betty unarchive {{archive.tar.gz}} to {{path/to/directory}}`
- Play Spotify: - Play Spotify:

View File

@ -5,7 +5,7 @@
- Create an image from a file using default settings: - Create an image from a file using default settings:
`carbon-now {{file}}` `carbon-now {{path/to/file}}`
- Create an image from a text in clipboard using default settings: - Create an image from a text in clipboard using default settings:
@ -17,20 +17,20 @@
- Create images interactively for custom settings and optionally save a preset: - Create images interactively for custom settings and optionally save a preset:
`carbon-now -i {{file}}` `carbon-now -i {{path/to/file}}`
- Create images from previously saved preset: - Create images from previously saved preset:
`carbon-now -p {{preset}} {{file}}` `carbon-now -p {{preset}} {{path/to/file}}`
- Start at a specified line of text: - Start at a specified line of text:
`carbon-now -s {{line}} {{file}}` `carbon-now -s {{line}} {{path/to/file}}`
- End at a specific line of text: - End at a specific line of text:
`carbon-now -e {{line}} {{file}}` `carbon-now -e {{line}} {{path/to/file}}`
- Open image in a browser instead of saving: - Open image in a browser instead of saving:
`carbon-now --open {{file}}` `carbon-now --open {{path/to/file}}`

View File

@ -17,7 +17,7 @@
- Sign a blob with a local key pair file: - Sign a blob with a local key pair file:
`cosign sign-blob --key {{cosign.key}} {{file}}` `cosign sign-blob --key {{cosign.key}} {{path/to/file}}`
- Verify a container against a public key: - Verify a container against a public key:

View File

@ -5,12 +5,12 @@
- Use a specific base URL: - Use a specific base URL:
`cotton -u {{base_url}} {{file}}.md` `cotton -u {{base_url}} {{path/to/file}}.md`
- Disable certificate verification (insecure mode): - Disable certificate verification (insecure mode):
`cotton -u {{base_url}} -i {{file}}.md` `cotton -u {{base_url}} -i {{path/to/file}}.md`
- Stop running when a test fails: - Stop running when a test fails:
`cotton -u {{base_url}} -s {{file}}.md` `cotton -u {{base_url}} -s {{path/to/file}}.md`

View File

@ -6,12 +6,12 @@
- Remove spaces and other undesirable characters from a file's name: - Remove spaces and other undesirable characters from a file's name:
`detox {{file}}` `detox {{path/to/file}}`
- Show how detox would rename all the files in a directory tree: - Show how detox would rename all the files in a directory tree:
`detox --dry-run -r {{directory}}` `detox --dry-run -r {{path/to/directory}}`
- Remove spaces and other undesirable characters from all files in a directory tree: - Remove spaces and other undesirable characters from all files in a directory tree:
`detox -r {{directory}}` `detox -r {{path/to/directory}}`

View File

@ -9,7 +9,7 @@
- Output commands to set LS_COLOR using colors from a file: - Output commands to set LS_COLOR using colors from a file:
`dircolors {{file}}` `dircolors {{path/to/file}}`
- Output commands for Bourne shell: - Output commands for Bourne shell:

View File

@ -5,7 +5,7 @@
- Print the EXIF metadata for a given file: - Print the EXIF metadata for a given file:
`exiftool {{file}}` `exiftool {{path/to/file}}`
- Remove all EXIF metadata from the given files: - Remove all EXIF metadata from the given files:

View File

@ -5,7 +5,7 @@
- Convert tabs in each file to spaces, writing to standard output: - Convert tabs in each file to spaces, writing to standard output:
`expand {{file}}` `expand {{path/to/file}}`
- Convert tabs to spaces, reading from standard input: - Convert tabs to spaces, reading from standard input:
@ -13,11 +13,11 @@
- Do not convert tabs after non blanks: - Do not convert tabs after non blanks:
`expand -i {{file}}` `expand -i {{path/to/file}}`
- Have tabs a certain number of characters apart, not 8: - Have tabs a certain number of characters apart, not 8:
`expand -t={{number}} {{file}}` `expand -t={{number}} {{path/to/file}}`
- Use a comma separated list of explicit tab positions: - Use a comma separated list of explicit tab positions:

View File

@ -5,7 +5,7 @@
- Search a single directory: - Search a single directory:
`fdupes {{directory}}` `fdupes {{path/to/directory}}`
- Search multiple directories: - Search multiple directories:
@ -13,7 +13,7 @@
- Search a directory recursively: - Search a directory recursively:
`fdupes -r {{directory}}` `fdupes -r {{path/to/directory}}`
- Search multiple directories, one recursively: - Search multiple directories, one recursively:
@ -21,12 +21,12 @@
- Search recursively and replace duplicates with hardlinks: - Search recursively and replace duplicates with hardlinks:
`fdupes -rH {{directory}}` `fdupes -rH {{path/to/directory}}`
- Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others: - Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others:
`fdupes -rd {{directory}}` `fdupes -rd {{path/to/directory}}`
- Search recursively and delete duplicates without prompting: - Search recursively and delete duplicates without prompting:
`fdupes -rdN {{directory}}` `fdupes -rdN {{path/to/directory}}`

View File

@ -5,7 +5,7 @@
- Upload a file: - Upload a file:
`ffsend upload {{file}}` `ffsend upload {{path/to/file}}`
- Download a file: - Download a file:
@ -13,12 +13,12 @@
- Upload a file with password: - Upload a file with password:
`ffsend upload {{file}} -p {{password}}` `ffsend upload {{path/to/file}} -p {{password}}`
- Download a file protected by password: - Download a file protected by password:
`ffsend download {{file}} -p {{password}}` `ffsend download {{path/to/file}} -p {{password}}`
- Upload a file and allow 4 downloads: - Upload a file and allow 4 downloads:
`ffsend upload {{file}} -d {{4}}` `ffsend upload {{path/to/file}} -d {{4}}`

View File

@ -5,12 +5,12 @@
- Wrap each line to default width (80 characters): - Wrap each line to default width (80 characters):
`fold {{file}}` `fold {{path/to/file}}`
- Wrap each line to width "30": - Wrap each line to width "30":
`fold -w30 {{file}}` `fold -w30 {{path/to/file}}`
- Wrap each line to width "5" and break the line at spaces (puts each space separated word in a new line, words with length > 5 are wrapped): - Wrap each line to width "5" and break the line at spaces (puts each space separated word in a new line, words with length > 5 are wrapped):
`fold -w5 -s {{file}}` `fold -w5 -s {{path/to/file}}`

View File

@ -5,12 +5,12 @@
- Remove file from repository index and filesystem: - Remove file from repository index and filesystem:
`git rm {{file}}` `git rm {{path/to/file}}`
- Remove directory: - Remove directory:
`git rm -r {{directory}}` `git rm -r {{path/to/directory}}`
- Remove file from repository index but keep it untouched locally: - Remove file from repository index but keep it untouched locally:
`git rm --cached {{file}}` `git rm --cached {{path/to/file}}`

View File

@ -5,16 +5,16 @@
- Display the completed import source file: - Display the completed import source file:
`goimports {{file}}.go` `goimports {{path/to/file}}.go`
- Write the result back to the source file instead of the standard output: - Write the result back to the source file instead of the standard output:
`goimports -w {{file}}.go` `goimports -w {{path/to/file}}.go`
- Display diffs and write the result back to the source file: - Display diffs and write the result back to the source file:
`goimports -w -d {{file}}.go` `goimports -w -d {{path/to/file}}.go`
- Set the import prefix string after 3rd-party packages (comma-separated list): - Set the import prefix string after 3rd-party packages (comma-separated list):
`goimports -local {{path/to/package}} {{file}}.go` `goimports -local {{path/to/package}} {{path/to/file}}.go`

View File

@ -5,11 +5,11 @@
- Set the name of the binary file to watch (defaults to `.goreload`): - Set the name of the binary file to watch (defaults to `.goreload`):
`goreload -b {{path/to/binary}} {{file}}.go` `goreload -b {{path/to/binary}} {{path/to/file}}.go`
- Set a custom log prefix (defaults to `goreload`): - Set a custom log prefix (defaults to `goreload`):
`goreload --logPrefix {{prefix}} {{file}}.go` `goreload --logPrefix {{prefix}} {{path/to/file}}.go`
- Reload whenever any file changes: - Reload whenever any file changes:

View File

@ -10,7 +10,7 @@
- Add a directory and its files recursively from local to the filesystem and print the relative hash: - Add a directory and its files recursively from local to the filesystem and print the relative hash:
`ipfs add -r {{directory}}` `ipfs add -r {{path/to/directory}}`
- Save a remote file and give it a name but not pin it: - Save a remote file and give it a name but not pin it:

View File

@ -5,7 +5,7 @@
- Search a single directory: - Search a single directory:
`jdupes {{directory}}` `jdupes {{path/to/directory}}`
- Search multiple directories: - Search multiple directories:
@ -13,11 +13,11 @@
- Search all directories recursively: - Search all directories recursively:
`jdupes --recurse {{directory}}` `jdupes --recurse {{path/to/directory}}`
- Search directory recursively and let user choose files to preserve: - Search directory recursively and let user choose files to preserve:
`jdupes --delete --recurse {{directory}}` `jdupes --delete --recurse {{path/to/directory}}`
- Search multiple directories and follow subdirectores under directory2, not directory1: - Search multiple directories and follow subdirectores under directory2, not directory1:

View File

@ -5,7 +5,7 @@
- Compress a file: - Compress a file:
`lz4 {{file}}` `lz4 {{path/to/file}}`
- Decompress a file: - Decompress a file:
@ -25,4 +25,4 @@
- Compress a file using the best compression: - Compress a file using the best compression:
`lz4 -9 {{file}}` `lz4 -9 {{path/to/file}}`

View File

@ -5,12 +5,12 @@
- Compress a file into a new file with the `.lzo` suffix: - Compress a file into a new file with the `.lzo` suffix:
`lzop {{file}}` `lzop {{path/to/file}}`
- Decompress a file: - Decompress a file:
`lzop -d {{file}}.lzo` `lzop -d {{path/to/file}}.lzo`
- Compress a file, while specifying the compression level. 0 = Worst, 9 = Best (Default level is 3): - Compress a file, while specifying the compression level. 0 = Worst, 9 = Best (Default level is 3):
`lzop -{{level}} {{file}}` `lzop -{{level}} {{path/to/file}}`

View File

@ -25,4 +25,4 @@
- Send mail with an attachment: - Send mail with an attachment:
`mailx -a {{file}} -s "{{subject}}" {{to_addr}}` `mailx -a {{path/to/file}} -s "{{subject}}" {{to_addr}}`

View File

@ -18,11 +18,11 @@
- Use a specific Makefile: - Use a specific Makefile:
`make --file {{file}}` `make --file {{path/to/file}}`
- Execute make from another directory: - Execute make from another directory:
`make --directory {{directory}}` `make --directory {{path/to/directory}}`
- Force making of a target, even if source files are unchanged: - Force making of a target, even if source files are unchanged:

View File

@ -6,7 +6,7 @@
- Open a file: - Open a file:
`micro {{file}}` `micro {{path/to/file}}`
- Save a file: - Save a file:

View File

@ -5,7 +5,7 @@
- Create a directory in current directory or given path: - Create a directory in current directory or given path:
`mkdir {{directory}}` `mkdir {{path/to/directory}}`
- Create multiple directories in the current directory: - Create multiple directories in the current directory:

View File

@ -13,7 +13,7 @@
- Open a file at the first occurrence of "string": - Open a file at the first occurrence of "string":
`most {{file}} +/{{string}}` `most {{path/to/file}} +/{{string}}`
- Move through opened files: - Move through opened files:

View File

@ -9,7 +9,7 @@
- Tail all files in a directory in a single stream: - Tail all files in a directory in a single stream:
`multitail -Q 1 '{{directory}}/*'` `multitail -Q 1 '{{path/to/directory}}/*'`
- Automatically add new files to a window: - Automatically add new files to a window:

View File

@ -17,8 +17,8 @@
- Specify a file to include as the message body: - Specify a file to include as the message body:
`mutt -i {{file}} {{recipient@example.com}}` `mutt -i {{path/to/file}} {{recipient@example.com}}`
- Specify a draft file containing the header and the body of the message, in RFC 5322 format: - Specify a draft file containing the header and the body of the message, in RFC 5322 format:
`mutt -H {{file}} {{recipient@example.com}}` `mutt -H {{path/to/file}} {{recipient@example.com}}`

View File

@ -5,20 +5,20 @@
- Number non-blank lines in a file: - Number non-blank lines in a file:
`nl {{file}}` `nl {{path/to/file}}`
- Read from standard output: - Read from standard output:
`cat {{file}} | nl {{options}} -` `cat {{path/to/file}} | nl {{options}} -`
- Number only the lines with printable text: - Number only the lines with printable text:
`nl -t {{file}}` `nl -t {{path/to/file}}`
- Number all lines including blank lines: - Number all lines including blank lines:
`nl -b a {{file}}` `nl -b a {{path/to/file}}`
- Number only the body lines that match a basic regular expression (BRE) pattern: - Number only the body lines that match a basic regular expression (BRE) pattern:
`nl -b p'FooBar[0-9]' {{file}}` `nl -b p'FooBar[0-9]' {{path/to/file}}`

View File

@ -7,7 +7,7 @@
- Open a file: - Open a file:
`nvim {{file}}` `nvim {{path/to/file}}`
- Enter text editing mode (insert mode): - Enter text editing mode (insert mode):

View File

@ -6,16 +6,16 @@
- Download table to local file: - Download table to local file:
`tunnel download {{table_name}} {{file}};` `tunnel download {{table_name}} {{path/to/file}};`
- Upload local file to a table partition: - Upload local file to a table partition:
`tunnel upload {{file}} {{table_name}}/{{partition_spec}};` `tunnel upload {{path/to/file}} {{table_name}}/{{partition_spec}};`
- Upload table specifying field and record delimiters: - Upload table specifying field and record delimiters:
`tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};` `tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
- Upload table using multiple threads: - Upload table using multiple threads:
`tunnel upload {{file}} {{table_name}} -threads {{num}};` `tunnel upload {{path/to/file}} {{table_name}} -threads {{num}};`

View File

@ -5,11 +5,11 @@
- Join all the lines into a single line, using TAB as delimiter: - Join all the lines into a single line, using TAB as delimiter:
`paste -s {{file}}` `paste -s {{path/to/file}}`
- Join all the lines into a single line, using the specified delimiter: - Join all the lines into a single line, using the specified delimiter:
`paste -s -d {{delimiter}} {{file}}` `paste -s -d {{delimiter}} {{path/to/file}}`
- Merge two files side by side, each in its column, using TAB as delimiter: - Merge two files side by side, each in its column, using TAB as delimiter:

View File

@ -5,11 +5,11 @@
- Parse and execute a PHP script: - Parse and execute a PHP script:
`php {{file}}` `php {{path/to/file}}`
- Check syntax on (i.e. lint) a PHP script: - Check syntax on (i.e. lint) a PHP script:
`php -l {{file}}` `php -l {{path/to/file}}`
- Run PHP interactively: - Run PHP interactively:

View File

@ -17,4 +17,4 @@
- Run tests and generate a coverage report in HTML: - Run tests and generate a coverage report in HTML:
`phpunit --coverage-html {{directory}}` `phpunit --coverage-html {{path/to/directory}}`

View File

@ -5,7 +5,7 @@
- Switch to directory and push it on the stack: - Switch to directory and push it on the stack:
`pushd {{directory}}` `pushd {{path/to/directory}}`
- Switch first and second directories on the stack: - Switch first and second directories on the stack:

View File

@ -5,7 +5,7 @@
- Print the contents of the file and display a progress bar: - Print the contents of the file and display a progress bar:
`pv {{file}}` `pv {{path/to/file}}`
- Measure the speed and amount of data flow between pipes (`-s` is optional): - Measure the speed and amount of data flow between pipes (`-s` is optional):

View File

@ -6,8 +6,8 @@
- Convert an RDF/XML document to Turtle: - Convert an RDF/XML document to Turtle:
`rapper -i rdfxml -o turtle {{file}}` `rapper -i rdfxml -o turtle {{path/to/file}}`
- Count the number of triples in a Turtle file: - Count the number of triples in a Turtle file:
`rapper -i turtle -c {{file}}` `rapper -i turtle -c {{path/to/file}}`

View File

@ -9,4 +9,4 @@
- Reverse an entire file and print to `stdout`: - Reverse an entire file and print to `stdout`:
`rev {{file}}` `rev {{path/to/file}}`

View File

@ -10,7 +10,7 @@
- Display the serialVersionUID for a colon-separated list of classes and resources: - Display the serialVersionUID for a colon-separated list of classes and resources:
`serialver -classpath {{directory}} {{classname1:classname2:...}}` `serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}`
- Use a specific option from reference page of Java application launcher to the Java Virtual Machine: - Use a specific option from reference page of Java application launcher to the Java Virtual Machine:

View File

@ -5,16 +5,16 @@
- Overwrite a file: - Overwrite a file:
`shred {{file}}` `shred {{path/to/file}}`
- Overwrite a file, leaving zeroes instead of random data: - Overwrite a file, leaving zeroes instead of random data:
`shred --zero {{file}}` `shred --zero {{path/to/file}}`
- Overwrite a file 25 times: - Overwrite a file 25 times:
`shred -n25 {{file}}` `shred -n25 {{path/to/file}}`
- Overwrite a file and remove it: - Overwrite a file and remove it:
`shred --remove {{file}}` `shred --remove {{path/to/file}}`

View File

@ -14,4 +14,4 @@
- Connect to a remote server using the first line of a file as the password, automatically accept unknown ssh keys, and launch a command: - Connect to a remote server using the first line of a file as the password, automatically accept unknown ssh keys, and launch a command:
`sshpass -f {{file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}} "{{command}}"` `sshpass -f {{path/to/file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}} "{{command}}"`

View File

@ -5,16 +5,16 @@
- Print all strings in a binary: - Print all strings in a binary:
`strings {{file}}` `strings {{path/to/file}}`
- Limit results to strings at least *length* characters long: - Limit results to strings at least *length* characters long:
`strings -n {{length}} {{file}}` `strings -n {{length}} {{path/to/file}}`
- Prefix each result with its offset within the file: - Prefix each result with its offset within the file:
`strings -t d {{file}}` `strings -t d {{path/to/file}}`
- Prefix each result with its offset within the file in hexadecimal: - Prefix each result with its offset within the file in hexadecimal:
`strings -t x {{file}}` `strings -t x {{path/to/file}}`

View File

@ -6,8 +6,8 @@
- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks: - Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
`sum {{file}}` `sum {{path/to/file}}`
- Compute a checksum with System V-compatible algorithm and 512-byte blocks: - Compute a checksum with System V-compatible algorithm and 512-byte blocks:
`sum --sysv {{file}}` `sum --sysv {{path/to/file}}`

View File

@ -22,7 +22,7 @@
- E[x]tract a (compressed) archive [f]ile into the target directory: - E[x]tract a (compressed) archive [f]ile into the target directory:
`tar xf {{source.tar[.gz|.bz2|.xz]}} --directory={{directory}}` `tar xf {{source.tar[.gz|.bz2|.xz]}} --directory={{path/to/directory}}`
- [c]reate a compressed archive and write it to a [f]ile, using [a]rchive suffix to determine the compression program: - [c]reate a compressed archive and write it to a [f]ile, using [a]rchive suffix to determine the compression program:

View File

@ -6,4 +6,4 @@
- Perform a topological sort consistent with a partial sort per line of input separated by blanks: - Perform a topological sort consistent with a partial sort per line of input separated by blanks:
`tsort {{file}}` `tsort {{path/to/file}}`

View File

@ -5,7 +5,7 @@
- Convert blanks in each file to tabs, writing to standard output: - Convert blanks in each file to tabs, writing to standard output:
`unexpand {{file}}` `unexpand {{path/to/file}}`
- Convert blanks to tabs, reading from standard output: - Convert blanks to tabs, reading from standard output:
@ -13,12 +13,12 @@
- Convert all blanks, instead of just initial blanks: - Convert all blanks, instead of just initial blanks:
`unexpand -a {{file}}` `unexpand -a {{path/to/file}}`
- Convert only leading sequences of blanks (overrides -a): - Convert only leading sequences of blanks (overrides -a):
`unexpand --first-only {{file}}` `unexpand --first-only {{path/to/file}}`
- Have tabs a certain number of characters apart, not 8 (enables -a): - Have tabs a certain number of characters apart, not 8 (enables -a):
`unexpand -t {{number}} {{file}}` `unexpand -t {{number}} {{path/to/file}}`

View File

@ -6,20 +6,20 @@
- Display each line once: - Display each line once:
`sort {{file}} | uniq` `sort {{path/to/file}} | uniq`
- Display only unique lines: - Display only unique lines:
`sort {{file}} | uniq -u` `sort {{path/to/file}} | uniq -u`
- Display only duplicate lines: - Display only duplicate lines:
`sort {{file}} | uniq -d` `sort {{path/to/file}} | uniq -d`
- Display number of occurrences of each line along with that line: - Display number of occurrences of each line along with that line:
`sort {{file}} | uniq -c` `sort {{path/to/file}} | uniq -c`
- Display number of occurrences of each line, sorted by the most frequent: - Display number of occurrences of each line, sorted by the most frequent:
`sort {{file}} | uniq -c | sort -nr` `sort {{path/to/file}} | uniq -c | sort -nr`

View File

@ -5,11 +5,11 @@
- Compress executable: - Compress executable:
`upx {{file}}` `upx {{path/to/file}}`
- Decompress executable: - Decompress executable:
`upx -d {{file}}` `upx -d {{path/to/file}}`
- Detailed help: - Detailed help:

View File

@ -5,19 +5,19 @@
- Check the style of a file: - Check the style of a file:
`vale {{file}}` `vale {{path/to/file}}`
- Check the style of a file with a specified configuration: - Check the style of a file with a specified configuration:
`vale --config='{{path/to/.vale.ini}}' {{file}}` `vale --config='{{path/to/.vale.ini}}' {{path/to/file}}`
- Output the results in JSON format: - Output the results in JSON format:
`vale --output=JSON {{file}}` `vale --output=JSON {{path/to/file}}`
- Check style issues at the specific severity and higher: - Check style issues at the specific severity and higher:
`vale --minAlertLeve={{suggestion|warning|error}} {{file}}` `vale --minAlertLeve={{suggestion|warning|error}} {{path/to/file}}`
- Check the style from `stdin`, specifying markup format: - Check the style from `stdin`, specifying markup format:

View File

@ -6,4 +6,4 @@
- Open a file: - Open a file:
`view {{file}}` `view {{path/to/file}}`

View File

@ -5,7 +5,7 @@
- Compress a file to the xz file format: - Compress a file to the xz file format:
`xz {{file}}` `xz {{path/to/file}}`
- Decompress a xz file: - Decompress a xz file:
@ -13,7 +13,7 @@
- Compress a file to the LZMA file format: - Compress a file to the LZMA file format:
`xz --format={{lzma}} {{file}}` `xz --format={{lzma}} {{path/to/file}}`
- Decompress an LZMA file: - Decompress an LZMA file:
@ -25,12 +25,12 @@
- Compress a file, but don't delete the original: - Compress a file, but don't delete the original:
`xz -k {{file}}` `xz -k {{path/to/file}}`
- Compress a file using the fastest compression: - Compress a file using the fastest compression:
`xz -0 {{file}}` `xz -0 {{path/to/file}}`
- Compress a file using the best compression: - Compress a file using the best compression:
`xz -9 {{file}}` `xz -9 {{path/to/file}}`

View File

@ -5,20 +5,20 @@
- Compress a file into a new file with the `.zst` suffix: - Compress a file into a new file with the `.zst` suffix:
`zstd {{file}}` `zstd {{path/to/file}}`
- Decompress a file: - Decompress a file:
`zstd -d {{file}}.zst` `zstd -d {{path/to/file}}.zst`
- Decompress to `stdout`: - Decompress to `stdout`:
`zstd -dc {{file}}.zst` `zstd -dc {{path/to/file}}.zst`
- Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default: - Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:
`zstd -{{level}} {{file}}` `zstd -{{level}} {{path/to/file}}`
- Unlock higher compression levels (up to 22) using more memory (both for compression and decompression): - Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
`zstd --ultra -{{level}} {{file}}` `zstd --ultra -{{level}} {{path/to/file}}`

View File

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

View File

@ -6,20 +6,20 @@
- Split a file at lines 5 and 23: - Split a file at lines 5 and 23:
`csplit {{file}} {{5}} {{23}}` `csplit {{path/to/file}} {{5}} {{23}}`
- Split a file every 5 lines (this will fail if the total number of lines is not divisible by 5): - Split a file every 5 lines (this will fail if the total number of lines is not divisible by 5):
`csplit {{file}} {{5}} {*}` `csplit {{path/to/file}} {{5}} {*}`
- Split a file every 5 lines, ignoring exact-division error: - Split a file every 5 lines, ignoring exact-division error:
`csplit -k {{file}} {{5}} {*}` `csplit -k {{path/to/file}} {{5}} {*}`
- Split a file at line 5 and use a custom prefix for the output files: - Split a file at line 5 and use a custom prefix for the output files:
`csplit {{file}} {{5}} -f {{prefix}}` `csplit {{path/to/file}} {{5}} -f {{prefix}}`
- Split a file at a line matching a regular expression: - Split a file at a line matching a regular expression:
`csplit {{file}} /{{regular_expression}}/` `csplit {{path/to/file}} /{{regular_expression}}/`

View File

@ -17,4 +17,4 @@
- Print the footprint of a file: - Print the footprint of a file:
`pkginfo -f {{file}}` `pkginfo -f {{path/to/file}}`

View File

@ -5,19 +5,19 @@
- Print the contents of a file in pride colors to the standard output: - Print the contents of a file in pride colors to the standard output:
`pridecat {{file}}` `pridecat {{path/to/file}}`
- Print contents of a file in trans colors: - Print contents of a file in trans colors:
`pridecat {{file}} --{{transgender|trans}}` `pridecat {{path/to/file}} --{{transgender|trans}}`
- Alternate between lesbian and bisexual pride flags: - Alternate between lesbian and bisexual pride flags:
`pridecat {{file}} --lesbian --bi` `pridecat {{path/to/file}} --lesbian --bi`
- Print contents of a file with the background colors changed: - Print contents of a file with the background colors changed:
`pridecat {{file}} -b` `pridecat {{path/to/file}} -b`
- List directory contents in pride flag colors: - List directory contents in pride flag colors:

View File

@ -5,15 +5,15 @@
- Open a file in the default editor: - Open a file in the default editor:
`sensible-editor {{file}}` `sensible-editor {{path/to/file}}`
- Open a file in the default editor, with the cursor at the end of the file: - Open a file in the default editor, with the cursor at the end of the file:
`sensible-editor + {{file}}` `sensible-editor + {{path/to/file}}`
- Open a file in the default editor, with the cursor at the beginning of line 10: - Open a file in the default editor, with the cursor at the beginning of line 10:
`sensible-editor +10 {{file}}` `sensible-editor +10 {{path/to/file}}`
- Open 3 files in vertically split editor windows at the same time: - Open 3 files in vertically split editor windows at the same time:

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 {{file}} | xsel -ib` `cat {{path/to/file}} | xsel -ib`
- Output the clipboard's contents into the terminal (equivalent to `Ctrl + V`): - Output the clipboard's contents into the terminal (equivalent to `Ctrl + V`):
@ -17,7 +17,7 @@
- Output the clipboard's contents into a file: - Output the clipboard's contents into a file:
`xsel -ob > {{file}}` `xsel -ob > {{path/to/file}}`
- Clear the clipboard: - Clear the clipboard:

View File

@ -5,8 +5,8 @@
- Look for lines which begins with the given prefix: - Look for lines which begins with the given prefix:
`look {{prefix}} {{file}}` `look {{prefix}} {{path/to/file}}`
- Look for lines ignoring case: - Look for lines ignoring case:
`look --ignore-case {{prefix}} {{file}}` `look --ignore-case {{prefix}} {{path/to/file}}`

View File

@ -5,7 +5,7 @@
- Write the contents of the clipboard to a file: - Write the contents of the clipboard to a file:
`pbpaste > {{file}}` `pbpaste > {{path/to/file}}`
- Use the contents of the clipboard as input to a command: - Use the contents of the clipboard as input to a command:

View File

@ -5,20 +5,20 @@
- Show file properties such as size, permissions, creation and access dates among others: - Show file properties such as size, permissions, creation and access dates among others:
`stat {{file}}` `stat {{path/to/file}}`
- Same as above but verbose (more similar to Linux's `stat`): - Same as above but verbose (more similar to Linux's `stat`):
`stat -x {{file}}` `stat -x {{path/to/file}}`
- Show only octal file permissions: - Show only octal file permissions:
`stat -f %Mp%Lp {{file}}` `stat -f %Mp%Lp {{path/to/file}}`
- Show owner and group of the file: - Show owner and group of the file:
`stat -f "%Su %Sg" {{file}}` `stat -f "%Su %Sg" {{path/to/file}}`
- Show the size of the file in bytes: - Show the size of the file in bytes:
`stat -f "%z %N" {{file}}` `stat -f "%z %N" {{path/to/file}}`

View File

@ -5,7 +5,7 @@
- Create a directory: - Create a directory:
`mkdir {{directory}}` `mkdir {{path/to/directory}}`
- Create a nested directory tree recursively: - Create a nested directory tree recursively:

View File

@ -6,4 +6,4 @@
- Switch to directory and push it on the stack: - Switch to directory and push it on the stack:
`pushd {{directory}}` `pushd {{path/to/directory}}`