Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions pages/common/ag.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
> The Silver Searcher. Like `ack`, but aims to be faster.
> More information: <https://manned.org/ag>.

- Find files containing "foo", and print the line matches in context:
- Find files containing `string`, and print the line matches in context:

`ag foo`
`ag string`

- Find files containing "foo" in a specific directory:
- Find files containing `string` in a specific directory:

`ag foo {{path/to/directory}}`
`ag string {{path/to/directory}}`

- Find files containing "foo", but only list the filenames:
- Find files containing `string`, but only list the filenames:

`ag {{[-l|--files-with-matches]}} foo`
`ag {{[-l|--files-with-matches]}} string`

- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
- Find files containing `STRING` case-insensitively, and print only the match, rather than the whole line:

`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} FOO`
`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} STRING`

- Find "foo" in files with a name matching "bar":
- Find `string` in files with a name matching `file_name`:

`ag foo {{[-G|--file-search-regex]}} bar`
`ag string {{[-G|--file-search-regex]}} file_name`

- Find files whose contents match a `regex`:

`ag '{{^ba(r|z)$}}'`
`ag '{{^ca(t|r)$}}'`

- Find files with a name matching "foo":
- Find files with a name matching `string`:

`ag {{[-g|--filename-pattern]}} foo`
`ag {{[-g|--filename-pattern]}} string`
4 changes: 2 additions & 2 deletions pages/common/csvtool.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

`csvtool {{[-c|--column]}} {{2,4}} {{path/to/file.csv}}`

- Extract lines from a CSV file where the second column exactly matches `Foo`:
- Extract lines from a CSV file where the second column exactly matches `String`:

`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Foo$}}' {{path/to/file.csv}}`
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^String$}}' {{path/to/file.csv}}`

- Extract lines from a CSV file where the second column starts with `Bar`:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/docker-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@

- Update metadata about a node, such as its availability, labels, or roles:

`docker node update --{{availability|role|label-add|...}} {{active|worker|foo|...}} {{node1}}`
`docker node update --{{availability|role|label-add|...}} {{active|worker|...}} {{node1}}`
2 changes: 1 addition & 1 deletion pages/common/ngrok.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- Expose a local HTTP service on a specific host:

`ngrok http {{foo.dev}}:{{80}}`
`ngrok http {{example.com}}:{{80}}`

- Expose a local HTTPS server:

Expand Down
4 changes: 2 additions & 2 deletions pages/common/pdfgrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

`pdfgrep {{[-H|--with-filename]}} {{[-n|--page-number]}} {{pattern}} {{file.pdf}}`

- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
- Do a case-insensitive search for lines that begin with `file_name` and return the first 3 matches:

`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^foo}}' {{file.pdf}}`
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^file_name}}' {{file.pdf}}`

- Find pattern in files with a `.pdf` extension in the current directory recursively:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/piper.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

- Speak twice as fast, with huge gaps between sentences:

`echo {{Speaking twice the speed. With added drama!}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
`echo {{Speaking twice the speed. With added drama!}} | piper -m {{file.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
22 changes: 11 additions & 11 deletions pages/common/z.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or `regex`.
> More information: <https://github.com/rupa/z>.

- Go to a directory that contains "foo" in the name:
- Go to a directory that contains `string` in the name:

`z {{foo}}`
`z string`

- Go to a directory that contains "foo" and then "bar":
- Go to a directory that contains `string1` and then `string2`:

`z {{foo}} {{bar}}`
`z string1 string2`

- Go to the highest-ranked directory matching "foo":
- Go to the highest-ranked directory matching `string`:

`z -r {{foo}}`
`z -r string`

- Go to the most recently accessed directory matching "foo":
- Go to the most recently accessed directory matching `string`:

`z -t {{foo}}`
`z -t string`

- List all directories in `z`'s database matching "foo":
- List all directories in `z`'s database matching `string`:

`z -l {{foo}}`
`z -l string`

- Remove the current directory from `z`'s database:

`z -x`

- Restrict matches to subdirectories of the current directory:

`z -c {{foo}}`
`z -c {{string}}`
8 changes: 4 additions & 4 deletions pages/common/zoxide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
> Uses a ranking algorithm to navigate to the best match.
> More information: <https://github.com/ajeetdsouza/zoxide>.

- Go to the highest-ranked directory that contains "foo" in the name:
- Go to the highest-ranked directory that contains `string` in the name:

`zoxide query {{foo}}`
`zoxide query string`

- Go to the highest-ranked directory that contains "foo" and then "bar":
- Go to the highest-ranked directory that contains `string1` and then `string2`:

`zoxide query {{foo}} {{bar}}`
`zoxide query string1 string2`

- Start an interactive directory search (requires `fzf`):

Expand Down
2 changes: 1 addition & 1 deletion pages/osx/pbpaste.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

- Use the contents of the clipboard as input to a command:

`pbpaste | grep foo`
`pbpaste | {{grep search_string}}`
14 changes: 7 additions & 7 deletions pages/osx/textutil.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
> Manipulate text files of various formats.
> More information: <https://keith.github.io/xcode-man-pages/textutil.1.html>.

- Display information about `foo.rtf`:
- Display information about `file.rtf`:

`textutil -info {{path/to/foo.rtf}}`
`textutil -info {{path/to/file.rtf}}`

- Convert `foo.rtf` into `foo.html`:
- Convert `file.rtf` into `file.html`:

`textutil -convert {{html}} {{path/to/foo.rtf}}`
`textutil -convert html {{path/to/file.rtf}}`

- Convert rich text to normal text:

`textutil {{path/to/foo.rtf}} -convert {{txt}}`
`textutil {{path/to/file.rtf}} -convert txt`

- Convert `foo.txt` into `foo.rtf`, using Times 10 for the font:
- Convert `file.txt` into `file.rtf`, using Times 10 for the font:

`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}`
`textutil -convert rtf -font Times -fontsize 10 {{path/to/file.txt}}`

- Load all RTF files in the current directory, concatenates their contents, and writes the result out as `index.html` with the HTML title set to "Several Files":

Expand Down