mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
*: remove usage of archaic "foobar" (#19123)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
+13
-13
@@ -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`
|
||||
|
||||
@@ -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`:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
+11
-11
@@ -3,25 +3,25 @@
|
||||
> 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:
|
||||
|
||||
@@ -29,4 +29,4 @@
|
||||
|
||||
- Restrict matches to subdirectories of the current directory:
|
||||
|
||||
`z -c {{foo}}`
|
||||
`z -c {{string}}`
|
||||
|
||||
@@ -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`):
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
|
||||
- Use the contents of the clipboard as input to a command:
|
||||
|
||||
`pbpaste | grep foo`
|
||||
`pbpaste | {{grep search_string}}`
|
||||
|
||||
@@ -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":
|
||||
|
||||
|
||||
Reference in New Issue
Block a user