Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
4 changes: 2 additions & 2 deletions pages/android/logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

`logcat -f {{path/to/file}}`

- Display lines that match a regular expression:
- Display lines that match a `regex`:

`logcat --regex {{regular_expression}}`
`logcat --regex {{regex}}`

- Display logs for a specific PID:

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

`[[ ${{variable}} {{==|!=}} "{{string}}" ]]`

- Test if a given string conforms the specified glob/regex:
- Test if a given string conforms the specified glob/`regex`:

`[[ ${{variable}} {{==|=~}} {{pattern}} ]]`

- Test if a given variable is [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater than or [e]qual/[l]ess than or [e]qual to the specified number:

Check failure on line 15 in pages/common/[[.md

View workflow job for this annotation

GitHub Actions / build

ot ==> to, of, or, not, it

`[[ ${{variable}} -{{eq|ne|gt|lt|ge|le}} {{integer}} ]]`

Expand Down
2 changes: 1 addition & 1 deletion pages/common/ack.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> See also: `rg`, which is much faster.
> More information: <https://beyondgrep.com/documentation>.

- Search for files containing a string or regular expression in the current directory recursively:
- Search for files containing a string or `regex` in the current directory recursively:

`ack "{{search_pattern}}"`

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

`adb logcat`

- Display lines that match a regular [e]xpression:
- Display lines that match a `regex`:

`adb logcat -e {{regular_expression}}`
`adb logcat -e {{regex}}`

- Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags:

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

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

- Find files whose contents match a regular expression:
- Find files whose contents match a `regex`:

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

Expand Down
10 changes: 5 additions & 5 deletions pages/common/apropos.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
> Search the manual pages for names and descriptions.
> More information: <https://manned.org/apropos>.

- Search for a keyword using a regular expression:
- Search for a keyword using a `regex`:

`apropos {{regular_expression}}`
`apropos {{regex}}`

- Search without restricting the output to the terminal width ([l]ong output):

`apropos {{[-l|--long]}} {{regular_expression}}`
`apropos {{[-l|--long]}} {{regex}}`

- Search for pages that match all the expressions given:
- Search for pages that match all the `regex` given:

`apropos {{regular_expression_1}} {{[-a|--and]}} {{regular_expression_2}} {{[-a|--and]}} {{regular_expression_3}}`
`apropos {{regex_1}} {{[-a|--and]}} {{regex_2}} {{[-a|--and]}} {{regex_3}}`
4 changes: 2 additions & 2 deletions pages/common/brew-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

`brew search {{keyword}}`

- Search for casks and formulae using a regular expression:
- Search for casks and formulae using a `regex`:

`brew search /{{regular_expression}}/`
`brew search /{{regex}}/`

- Enable searching through descriptions:

Expand Down
6 changes: 3 additions & 3 deletions pages/common/bzegrep.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# bzegrep

> Find extended regular expression patterns in `bzip2` compressed files using `egrep`.
> Find extended `regex` patterns in `bzip2` compressed files using `egrep`.
> More information: <https://manned.org/bzegrep>.

- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):

`bzegrep "{{search_pattern}}" {{path/to/file}}`

- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive):
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive):

`bzegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`

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

`bzgrep "{{search_pattern}}" {{path/to/file}}`

- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:

`bzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`

- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:

Check failure on line 14 in pages/common/bzgrep.md

View workflow job for this annotation

GitHub Actions / build

fter ==> after

Check failure on line 14 in pages/common/bzgrep.md

View workflow job for this annotation

GitHub Actions / build

efore ==> before, afore

Check failure on line 14 in pages/common/bzgrep.md

View workflow job for this annotation

GitHub Actions / build

ontext ==> context

`bzgrep --{{context|before-context|after-context}} {{3}} "{{search_pattern}}" {{path/to/file}}`

Expand Down
2 changes: 1 addition & 1 deletion pages/common/cariddi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Crawl URLs and scan for endpoints, secrets, api keys, file extensions, tokens, and more from a list of domains.
> More information: <https://github.com/edoardottt/cariddi/wiki>.

- Hunt for secrets using custom regexes and output results in JSON:
- Hunt for secrets using custom `regex`es and output results in JSON:

`cat {{path/to/urls.txt}} | cariddi -s -sf {{path/to/custom_secrets.txt}} -json`

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

`cbt lookup "{{table_name}}" "{{row_key}}" columns="{{family1:qualifier1,family2:qualifier2,...}}"`

- Search up to 5 rows in the current project by a specific regex pattern and print them:
- Search up to 5 rows in the current project by a specific `regex` pattern and print them:

`cbt read "{{table_name}}" regex="{{row_key_pattern}}" count={{5}}`

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

`csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}`

- Find rows in which columns 3 or 4 match a certain regular expression:
- Find rows in which columns 3 or 4 match a certain `regex`:

`csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regular_expression}} {{data.csv}}`
`csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regex}} {{data.csv}}`

- Find rows in which the "name" column does NOT include the string "John Doe":

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

`ctest {{[-N|--show-only]}}`

- Run a single test based on its name, or filter on a regular expression:
- Run a single test based on its name, or filter on a `regex`:

`ctest --output-on-failure {{[-R|--tests-regex]}} '^{{test_name}}$'`
2 changes: 1 addition & 1 deletion pages/common/dlv.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

- Compile and begin tracing a program:

`dlv trace {{package}} --regexp '{{regular_expression}}'`
`dlv trace {{package}} --regexp '{{regex}}'`
2 changes: 1 addition & 1 deletion pages/common/ed.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

- Replace a string with a specific replacement for all lines:

`,s/{{regular_expression}}/{{replacement}}/g<Enter>`
`,s/{{regex}}/{{replacement}}/g<Enter>`

- Exit `ed`:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/egrep.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# egrep

> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()`, and `|`).
> Find patterns in files using extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`).
> More information: <https://manned.org/egrep>.

- Search for a pattern within a file:
Expand Down
4 changes: 2 additions & 2 deletions pages/common/ex.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

`/{{search_pattern}}<Enter>`

- Perform a regular expression substitution in the whole file:
- Perform a `regex` substitution in the whole file:

`%s/{{regular_expression}}/{{replacement}}/g<Enter>`
`%s/{{regex}}/{{replacement}}/g<Enter>`

- Insert text:

Expand Down
26 changes: 13 additions & 13 deletions pages/common/exrex.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# exrex

> Generate all/random matching strings for a regular expression.
> It can also simplify regular expressions.
> Generate all/random matching strings for a `regex`.
> It can also simplify `regex`.
> More information: <https://github.com/asciimoo/exrex>.

- Generate all possible strings that match a regular expression:
- Generate all possible strings that match a `regex`:

`exrex '{{regular_expression}}'`
`exrex '{{regex}}'`

- Generate a random string that matches a regular expression:
- Generate a random string that matches a `regex`:

`exrex --random '{{regular_expression}}'`
`exrex --random '{{regex}}'`

- Generate at most 100 strings that match a regular expression:
- Generate at most 100 strings that match a `regex`:

`exrex --max-number {{100}} '{{regular_expression}}'`
`exrex --max-number {{100}} '{{regex}}'`

- Generate all possible strings that match a regular expression, joined by a custom delimiter string:
- Generate all possible strings that match a `regex`, joined by a custom delimiter string:

`exrex --delimiter "{{, }}" '{{regular_expression}}'`
`exrex --delimiter "{{, }}" '{{regex}}'`

- Print count of all possible strings that match a regular expression:
- Print count of all possible strings that match a `regex`:

`exrex --count '{{regular_expression}}'`
`exrex --count '{{regex}}'`

- Simplify a regular expression:
- Simplify a `regex`:

`exrex --simplify '{{ab|ac}}'`

Expand Down
12 changes: 6 additions & 6 deletions pages/common/fastmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
> Regexes are matched by Rust regex crate.
> More information: <https://github.com/facebookincubator/fastmod>.

- Replace a regex pattern in all files of the current directory, ignoring files on .ignore and .gitignore:
- Replace a `regex` in all files of the current directory, ignoring files on .ignore and .gitignore:

`fastmod {{regex_pattern}} {{replacement}}`
`fastmod {{regex}} {{replacement}}`

- Replace a regex pattern in case-insensitive mode in specific files or directories:
- Replace a `regex` in case-insensitive mode in specific files or directories:

`fastmod --ignore-case {{regex_pattern}} {{replacement}} -- {{path/to/file path/to/directory ...}}`
`fastmod --ignore-case {{regex}} {{replacement}} -- {{path/to/file path/to/directory ...}}`

- Replace a regex pattern in a specific directory in files filtered with a case-insensitive glob pattern:
- Replace a `regex` in a specific directory in files filtered with a case-insensitive glob pattern:

`fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}`

- Replace for an exact string in `.js` or JSON files:

`fastmod --fixed-strings {{exact_string}} {{replacement}} --extensions {{json,js}}`

- Replace for an exact string without prompt for a confirmation (disables regular expressions):
- Replace for an exact string without prompt for a confirmation (disables `regex`):

`fastmod --accept-all --fixed-strings {{exact_string}} {{replacement}}`

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

`gdu --ignore-dirs {{path/to/directory1,path/to/directory2,...}}`

- Ignore paths by regular expression:
- Ignore paths by `regex`:

`gdu --ignore-dirs-pattern '{{.*[abc]+}}'`

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

- Search for remote gem(s) and show all available versions:

`gem search {{regular_expression}} --all`
`gem search {{regex}} --all`

- Install the latest version of a gem:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/git-annotate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

`git annotate {{[-e|--show-email]}} {{path/to/file}}`

- Print only rows that match a regular expression:
- Print only rows that match a `regex`:

`git annotate -L :{{regexp}} {{path/to/file}}`
4 changes: 2 additions & 2 deletions pages/common/git-fame.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

`git fame`

- Exclude files/directories that match the specified regular expression:
- Exclude files/directories that match the specified `regex`:

`git fame --excl "{{regular_expression}}"`
`git fame --excl "{{regex}}"`

- Calculate contributions made after the specified date:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/git-sed.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

`git sed -c '{{find_text}}' '{{replace_text}}'`

- Replace the specified text, using regular expressions:
- Replace the specified text, using `regex`:

`git sed -f g '{{find_text}}' '{{replace_text}}'`

Expand Down
6 changes: 3 additions & 3 deletions pages/common/grep.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# grep

> Find patterns in files using regular expressions.
> Find patterns in files using `regex`es.
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.

- Search for a pattern within a file:

`grep "{{search_pattern}}" {{path/to/file}}`

- Search for an exact string (disables regular expressions):
- Search for an exact string (disables `regex`es):

`grep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}`

- Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files:

`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}`

- Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:
- Use extended `regex`es (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:

`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}`

- Print 3 lines of [C]ontext around, [B]efore or [A]fter each match:

Check failure on line 22 in pages/common/grep.md

View workflow job for this annotation

GitHub Actions / build

fter ==> after

Check failure on line 22 in pages/common/grep.md

View workflow job for this annotation

GitHub Actions / build

efore ==> before, afore

Check failure on line 22 in pages/common/grep.md

View workflow job for this annotation

GitHub Actions / build

ontext ==> context

`grep {{--context|--before-context|--after-context}} 3 "{{search_pattern}}" {{path/to/file}}`

Expand Down
6 changes: 3 additions & 3 deletions pages/common/grex.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# grex

> Generate regular expressions.
> Generate `regex`s.
> More information: <https://github.com/pemistahl/grex>.

- Generate a simple regular expression:
- Generate a simple `regex`:

`grex {{space_separated_strings}}`

- Generate a case-insensitive regular expression:
- Generate a case-insensitive `regex`:

`grex {{[-i|--ignore-case]}} {{space_separated_strings}}`

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

`httpflow {{host httpbin.org or host baidu.com}}`

- Use a regular expression to filter requests by URLs:
- Use a `regex` to filter requests by URLs:

`httpflow -u '{{regular_expression}}'`
`httpflow -u '{{regex}}'`

- Read packets from PCAP format binary file:

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

`ippfind --txt-pdl application/postscript {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;`

- Send a PostScript test document to every PostScript printer on the network, whose name matches a regular expression:
- Send a PostScript test document to every PostScript printer on the network, whose name matches a `regex`:

`ippfind --txt-pdl application/postscript {{[-h|--host]}} {{regex}} {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;`
8 changes: 4 additions & 4 deletions pages/common/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

`jest {{path/to/file1 path/to/file2 ...}}`

- Run the test suites from files within the current and subdirectories, whose paths match the given regular expression:
- Run the test suites from files within the current and subdirectories, whose paths match the given `regex`:

`jest {{regular_expression1}} {{regular_expression2}}`
`jest {{regex1}} {{regex2}}`

- Run the tests whose names match the given regular expression:
- Run the tests whose names match the given `regex`:

`jest --testNamePattern {{regular_expression}}`
`jest --testNamePattern {{regex}}`

- Run test suites related to a given source file:

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

`linkchecker --check-extern {{https://example.com/}}`

- Ignore URLs that match a specific regular expression:
- Ignore URLs that match a specific `regex`:

`linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}`
`linkchecker --ignore-url {{regex}} {{https://example.com/}}`

- Output results to a CSV file:

Expand Down
Loading