1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-01 02:35:30 +02:00

*: standardize regex usage (#17328)

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
Managor 2025-07-25 08:50:06 +03:00 committed by GitHub
parent 0ea8db4e39
commit ba6daef39d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
104 changed files with 195 additions and 195 deletions

View file

@ -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:

View file

@ -8,7 +8,7 @@
`[[ ${{variable}} {{==|!=}} "{{string}}" ]]`
- Test if a given string conforms the specified glob/regex:
- Test if a given string conforms the specified glob/`regex`:
`[[ ${{variable}} {{==|=~}} {{pattern}} ]]`

View file

@ -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}}"`

View file

@ -7,9 +7,9 @@
`adb logcat`
- Display lines that match a regular [e]xpression:
- Display lines that match a `reg[e]x`:
`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:

View file

@ -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)$}}'`

View file

@ -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}}`

View file

@ -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:

View file

@ -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}}`

View file

@ -7,7 +7,7 @@
`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}}`

View file

@ -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`

View file

@ -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}}`

View file

@ -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":

View file

@ -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}}$'`

View file

@ -25,4 +25,4 @@
- Compile and begin tracing a program:
`dlv trace {{package}} --regexp '{{regular_expression}}'`
`dlv trace {{package}} --regexp '{{regex}}'`

View file

@ -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`:

View file

@ -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:

View file

@ -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:

View file

@ -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`es.
> 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}}'`

View file

@ -4,15 +4,15 @@
> 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}'}}`
@ -20,7 +20,7 @@
`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}}`

View file

@ -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]+}}'`

View file

@ -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:

View file

@ -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}}`

View file

@ -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:

View file

@ -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}}'`

View file

@ -1,13 +1,13 @@
# 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}}`
@ -15,7 +15,7 @@
`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}}`

View file

@ -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}}`

View file

@ -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:

View file

@ -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 \;`

View file

@ -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:

View file

@ -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:

View file

@ -29,4 +29,4 @@
- Filter lines of a compressed CSV file treating numbers as [S]trings:
`mlr --prepipe 'gunzip' {{[-c|--csv]}} filter {{[-S|--infer-none]}} '${{fieldName}} =~ "{{regular_expression}}"' {{example.csv.gz}}`
`mlr --prepipe 'gunzip' {{[-c|--csv]}} filter {{[-S|--infer-none]}} '${{fieldName}} =~ "{{regex}}"' {{example.csv.gz}}`

View file

@ -13,7 +13,7 @@
- Run tests that match a specific `grep` pattern:
`mocha --grep {{regular_expression}}`
`mocha --grep {{regex}}`
- Run tests on changes to JavaScript files in the current directory and once initially:

View file

@ -24,7 +24,7 @@
`ncu --target {{minor}}`
- List outdated dependencies that match a keyword or regular expression:
- List outdated dependencies that match a keyword or `regex`:
`ncu --filter {{keyword|/regex/}}`

View file

@ -1,6 +1,6 @@
# ngrep
> Filter network traffic packets using regular expressions.
> Filter network traffic packets using `regex`.
> More information: <https://github.com/jpr5/ngrep/blob/master/EXAMPLES.md>.
- Capture traffic of all interfaces:

View file

@ -7,7 +7,7 @@
- Search for a package in nixpkgs via its name:
`nix-env {{[-qaP|--query --available --attr-path]}} {{search_term_regexp}}`
`nix-env {{[-qaP|--query --available --attr-path]}} {{search_term_regex}}`
- Start a shell with the specified packages available:

View file

@ -15,7 +15,7 @@
`nl -b {{a|n}} {{path/to/file}}`
- Number only the [b]ody lines that match a basic regular expression (BRE) [p]attern:
- Number only the [b]ody lines that match a basic `regex` (BRE) [p]attern:
`nl -b p'FooBar[0-9]' {{path/to/file}}`

View file

@ -25,9 +25,9 @@
`<Esc></>{{search_pattern}}<Enter>`
- Perform a regular expression substitution in the whole file:
- Perform a `regex` substitution in the whole file:
`<Esc><:>%s/{{regular_expression}}/{{replacement}}/g<Enter>`
`<Esc><:>%s/{{regex}}/{{replacement}}/g<Enter>`
- Enter normal mode and save (write) the file, and quit:

View file

@ -29,7 +29,7 @@
- Ignore the specified files and directories:
`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regular_expression}}`
`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regex}}`
- Only detect languages from the specified categories (default: programming and markup):

View file

@ -3,15 +3,15 @@
> The Perl 5 language interpreter.
> More information: <https://www.perl.org>.
- Print lines from `stdin` [m/] matching regex1 and case insensitive [/i] regex2:
- Print lines from `stdin` [m/] matching `regex1` and case insensitive [/i] `regex2`:
`perl -n -e 'print if m/{{regex1}}/ and m/{{regex2}}/i'`
- Say [-E] first match group, using a regexp, ignoring space in regex [/x]:
- Say [-E] first match group, using a `regex`, ignoring space in `regex` [/x]:
`perl -n -E 'say $1 if m/{{before}} ( {{group_regex}} ) {{after}}/x'`
- [-i]n-place, with backup, [s/] substitute all occurrence [/g] of regex with replacement:
- [-i]n-place, with backup, [s/] substitute all occurrence [/g] of `regex` with replacement:
`perl -i'.bak' -p -e 's/{{regex}}/{{replacement}}/g' {{path/to/files}}`

View file

@ -16,10 +16,10 @@
`pt {{[-wi|--word-regexp --ignore-case]}} {{foo}}`
- Find "foo" in files with a given extension using a regular expression:
- Find "foo" in files with a given extension using a `regex`:
`pt {{[-G|--file-search-regexp]}}='{{\.bar$}}' {{foo}}`
- Find files whose contents match the regular expression, up to 2 directories deep:
- Find files whose contents match the `regex`, up to 2 directories deep:
`pt --depth={{2}} -e '{{^ba[rz]*$}}'`

View file

@ -1,6 +1,6 @@
# ptargrep
> Find regular expression patterns in tar archive files.
> Find `regex` patterns in tar archive files.
> More information: <https://manned.org/ptargrep>.
- Search for a pattern within one or more tar archives:

View file

@ -7,10 +7,10 @@
`recsel {{[-p|--print]}} name,version {{data.rec}}`
- Use "~" to match a string with a given regular expression:
- Use "~" to match a string with a given `regex`:
`recsel {{[-e|--expression]}} "{{field_name}} ~ '{{regular_expression}}' {{data.rec}}"`
`recsel {{[-e|--expression]}} "{{field_name}} ~ '{{regex}}' {{data.rec}}"`
- Use a predicate to match a name and a version:
`recsel {{[-e|--expression]}} "name ~ '{{regular_expression}}' && version ~ '{{regular_expression}}'" {{data.rec}}`
`recsel {{[-e|--expression]}} "name ~ '{{regex}}' && version ~ '{{regex}}'" {{data.rec}}`

View file

@ -7,9 +7,9 @@
`repren {{[-n|--dry-run]}} --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}`
- Do a dry-run renaming a directory of JPEGs with a regular expression:
- Do a dry-run renaming a directory of JPEGs with a `regex`:
`repren --rename {{[-n|--dry-run]}} --from '{{regular_expression}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}`
`repren --rename {{[-n|--dry-run]}} --from '{{regex}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}`
- Do a find-and-replace on the contents of a directory of CSV files:

View file

@ -4,7 +4,7 @@
> Aims to be a faster alternative to `grep`.
> More information: <https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md>.
- Recursively search current directory for a pattern (regular expression):
- Recursively search current directory for a pattern (`regex`):
`rg {{pattern}}`

View file

@ -5,7 +5,7 @@
- Search recursively for a pattern in all files in the current directory:
`rga {{regular_expression}}`
`rga {{regex}}`
- List available adapters:
@ -13,11 +13,11 @@
- Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.):
`rga --rga-adapters={{adapter1,adapter2}} {{regular_expression}}`
`rga --rga-adapters={{adapter1,adapter2}} {{regex}}`
- Search for a pattern using the mime type instead of the file extension (slower):
`rga --rga-accurate {{regular_expression}}`
`rga --rga-accurate {{regex}}`
- Display help:

View file

@ -1,6 +1,6 @@
# rgrep
> Recursively find patterns in files using regular expressions.
> Recursively find patterns in files using `regex`.
> Equivalent to `grep -r`.
> More information: <https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options>.
@ -12,11 +12,11 @@
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
- Recursively search for an extended regular expression pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
- Recursively search for an exact string (disables regular expressions) in the current working directory:
- Recursively search for an exact string (disables `regex`) in the current working directory:
`rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"`

View file

@ -7,7 +7,7 @@
`ROPgadget --binary {{path/to/binary}}`
- Filter gadgets in the binary file by a regular expression:
- Filter gadgets in the binary file by a `regex`:
`ROPgadget --binary {{path/to/binary}} --re {{regex}}`

View file

@ -7,7 +7,7 @@
`ropper --file {{path/to/binary}}`
- Filter gadgets in the binary file by a regular expression:
- Filter gadgets in the binary file by a `regex`:
`ropper --file {{path/to/binary}} --search {{regex}}`

View file

@ -3,7 +3,7 @@
> Intuitive find and replace.
> More information: <https://github.com/chmln/sd>.
- Trim some whitespace using a regular expression (output stream: `stdout`):
- Trim some whitespace using a `regex` (output stream: `stdout`):
`{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''`

View file

@ -4,7 +4,7 @@
> See also: `awk`, `ed`.
> More information: <https://manned.org/sed.1posix>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed 's/apple/mango/g'`

View file

@ -23,7 +23,7 @@
`smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}}`
- Locate and download files [R]ecursively up to N levels depth, searching for filename pattern (regex), and excluding certain shares:
- Locate and download files [R]ecursively up to N levels depth, searching for filename pattern (`regex`), and excluding certain shares:
`smbmap --host-file {{path/to/file}} {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -q -R --depth {{number}} --exclude {{sharename}} -A {{filepattern}}`
@ -31,6 +31,6 @@
`smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}} --upload {{path/to/file}} '{{/share_name/remote_filename}}'`
- Display SMB shares and recursively list directories and files, searching for file content matching a regular expression:
- Display SMB shares and recursively list directories and files, searching for file content matching a `regex`:
`smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}} -R -F {{pattern}}`

View file

@ -11,7 +11,7 @@
`stern . --container-state {{running|waiting|terminated}}`
- Tail all pods that matches a given regular expression:
- Tail all pods that matches a given `regex`:
`stern {{pod_query}}`

View file

@ -21,6 +21,6 @@
`stow {{[-R|--restow]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
- Exclude files matching a regular expression:
- Exclude files matching a `regex`:
`stow --ignore={{regular_expression}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`
`stow --ignore={{regex}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}`

View file

@ -16,7 +16,7 @@
`tac {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}`
- Use a specific regex as a separator:
- Use a specific `regex` as a separator:
`tac {{[-r|--regex]}} {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}`

View file

@ -1,24 +1,24 @@
# tlmgr search
> Search for TeX Live packages using (Perl) regular expressions.
> Search for TeX Live packages using (Perl) `regex`.
> More information: <https://www.tug.org/texlive/doc/tlmgr.html#search>.
- Search for a package name and descriptions of all locally installed packages from a specific regular expression:
- Search for a package name and descriptions of all locally installed packages from a specific `regex`:
`tlmgr search "{{regular_expression}}"`
`tlmgr search "{{regex}}"`
- Search for all file names of all locally installed packages from a regular expression:
- Search for all file names of all locally installed packages from a `regex`:
`tlmgr search --file "{{regular_expression}}"`
`tlmgr search --file "{{regex}}"`
- Search for all file names, package names, and descriptions of all locally installed packages from a regular expression:
- Search for all file names, package names, and descriptions of all locally installed packages from a `regex`:
`tlmgr search --all "{{regular_expression}}"`
`tlmgr search --all "{{regex}}"`
- Search the TeX Live database, instead of the local installation:
`tlmgr search --global "{{regular_expression}}"`
`tlmgr search --global "{{regex}}"`
- Restrict the matches for package names and descriptions (but not for file names) to whole words:
`tlmgr search --all --word "{{regular_expression}}"`
`tlmgr search --all --word "{{regex}}"`

View file

@ -7,7 +7,7 @@
`trawl -n`
- Filter interface names using a case-insensitive regular expression:
- Filter interface names using a case-insensitive `regex`:
`trawl -f wi`

View file

@ -24,9 +24,9 @@
`tre --editor {{command}}`
- Print files within the tree hierarchy, excluding all paths that match the provided regular expression:
- Print files within the tree hierarchy, excluding all paths that match the provided `regex`:
`tre --exclude {{regular_expression}}`
`tre --exclude {{regex}}`
- Display version:

View file

@ -16,7 +16,7 @@
`echo "foo bar baz" | tuc {{[-d|--delimiter]}} ' ' {{[-f|--fields]}} {{2:}}`
- Cut using regular expressions:
- Cut using `regex`:
`echo "a,b, c" | tuc {{[-e|--regex]}} '{{[, ]+}}' {{[-f|--fields]}} {{1,3}}`

View file

@ -7,7 +7,7 @@
`ugrep {{[-Q|--query]}}`
- Search the current directory recursively for files containing a regex search pattern:
- Search the current directory recursively for files containing a `regex` search pattern:
`ugrep "{{search_pattern}}"`

View file

@ -19,6 +19,6 @@
`varnishlog -q 'ReqURL eq "{{/path}}"'`
- Only display requests to paths matching a regular expression:
- Only display requests to paths matching a `regex`:
`varnishlog -q 'ReqURL ~ "{{regex}}"'`

View file

@ -29,9 +29,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>`
- Display the line numbers:

View file

@ -11,13 +11,13 @@
`vitest run {{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`:
`vitest run {{regular_expression1}} {{regular_expression2}}`
`vitest run {{regex1}} {{regex2}}`
- Run the tests whose names match the given regular expression:
- Run the tests whose names match the given `regex`:
`vitest run --testNamePattern {{regular_expression}}`
`vitest run --testNamePattern {{regex}}`
- Watch files for changes and automatically re-run related tests:

View file

@ -1,6 +1,6 @@
# xzgrep
> Search files possibly compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd` using regular expressions.
> Search files possibly compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd` using `regex`.
> See also: `grep`.
> More information: <https://manned.org/xzgrep>.
@ -8,7 +8,7 @@
`xzgrep "{{search_pattern}}" {{path/to/file}}`
- Search for an exact string (disables regular expressions):
- Search for an exact string (disables `regex`):
`xzgrep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}`
@ -16,7 +16,7 @@
`xzgrep {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
`xzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`

View file

@ -1,6 +1,6 @@
# z
> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or regular expressions.
> 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:

View file

@ -1,13 +1,13 @@
# zegrep
> Find extended regular expression patterns in compressed files using `egrep`.
> Find extended `regex` patterns in compressed files using `egrep`.
> More information: <https://www.unix.com/man-page/freebsd/1/zegrep/>.
- 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):
`zegrep "{{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):
`zegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`

View file

@ -23,9 +23,9 @@
`zgrep {{[-e|--regexp]}} "{{pattern_1}}" {{[-e|--regexp]}} "{{pattern_2}}" {{path/to/compressed/file}}`
- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`):
- Use extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`):
`zgrep {{[-E|--extended-regexp]}} {{regular_expression}} {{path/to/file}}`
`zgrep {{[-E|--extended-regexp]}} {{regex}} {{path/to/file}}`
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:

View file

@ -1,6 +1,6 @@
# zipgrep
> Find patterns in files in a Zip archive using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`).
> Find patterns in files in a Zip archive using extended `regex` (supports `?`, `+`, `{}`, `()` and `|`).
> More information: <https://manned.org/zipgrep>.
- Search for a pattern within a Zip archive:

View file

@ -13,7 +13,7 @@
- Search for a pattern in the file (press `<n>` to go to next match):
`</>{{regular_expression}}`
`</>{{regex}}`
- Exit:

View file

@ -4,7 +4,7 @@
> See also `zcp` and `zln`.
> More information: <https://zsh.sourceforge.net/Doc/Release/User-Contributions.html>.
- Move files using a regular expression-like pattern:
- Move files using a `regex`-like pattern:
`zmv '{{(*).log}}' '{{$1.txt}}'`

View file

@ -4,7 +4,7 @@
> See also: `awk`, `ed`.
> More information: <https://www.freebsd.org/cgi/man.cgi?sed>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed 's/apple/mango/g'`
@ -16,7 +16,7 @@
`{{command}} | sed -fa {{path/to/script.sed}}`
- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed -E 's/(apple)/\U\1/g'`
@ -24,6 +24,6 @@
`{{command}} | sed -n '1p'`
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place:
`sed -i 's/apple/mango/g' {{path/to/file}}`

View file

@ -23,9 +23,9 @@
`sudo aide {{[-c|--config]}} {{path/to/config_file}}`
- Use REGEX to limit AIDE to a specific string:
- Use `regex` to limit AIDE to a specific string:
`sudo aide {{[-l|--limit]}} {{REGEX}}`
`sudo aide {{[-l|--limit]}} {{regex}}`
- Send reporter results to a URL:

View file

@ -15,6 +15,6 @@
`apt-file {{show|list}} {{package}}`
- Search for packages that match the `regular_expression`:
- Search for packages that match the `regex`:
`apt-file {{search|find}} {{[-x|--regexp]}} {{regular_expression}}`
`apt-file {{search|find}} {{[-x|--regexp]}} {{regex}}`

View file

@ -5,7 +5,7 @@
- Search for packages from the official repositories and AUR:
`aura --aursync --both --search {{keyword|regular_expression}}`
`aura --aursync --both --search {{keyword|regex}}`
- Install a package from the AUR:

View file

@ -3,9 +3,9 @@
> Interact with Arch Linux's User Repository, commonly referred to as the AUR.
> More information: <https://github.com/falconindy/auracle>.
- Display AUR packages that match a regular expression:
- Display AUR packages that match a `regex`:
`auracle search '{{regular_expression}}'`
`auracle search '{{regex}}'`
- Display information about one or more AUR packages:

View file

@ -11,7 +11,7 @@
`sudo btrfs {{[rest|restore]}} {{[-D|--dry-run]}} {{path/to/btrfs_device}} {{path/to/target_directory}}`
- Restore files matching a given regex ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well):
- Restore files matching a given `regex` ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well):
`sudo btrfs {{[rest|restore]}} --path-regex {{regex}} -c {{path/to/btrfs_device}} {{path/to/target_directory}}`

View file

@ -20,6 +20,6 @@
`csplit {{path/to/file}} 5 {{[-f|--prefix]}} {{prefix}}`
- Split a file at a line matching a regular expression:
- Split a file at a line matching a `regex`:
`csplit {{path/to/file}} /{{regular_expression}}/`
`csplit {{path/to/file}} /{{regex}}/`

View file

@ -8,7 +8,7 @@
`esearch -db pubmed -query "{{selective serotonin reuptake inhibitor}}"`
- Search the protein database using a query and regexp:
- Search the protein database using a query and `regex`:
`esearch -db {{protein}} -query {{'Escherichia*'}}`

View file

@ -4,7 +4,7 @@
> Note: This page refers to the command from the `rename` Debian package.
> More information: <https://manned.org/file-rename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):
- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found):
`rename {{'s/foo/bar/'}} {{*}}`

View file

@ -11,7 +11,7 @@
`guix package {{[-r|--remove]}} {{package}}`
- Search the package database for a regular expression:
- Search the package database for a `regex`:
`guix package {{[-s|--search]}} "{{search_pattern}}"`

View file

@ -15,9 +15,9 @@
`inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} {{path/to/directory}}`
- Watch a directory for changes, excluding files, whose names match a regular expression:
- Watch a directory for changes, excluding files, whose names match a `regex`:
`inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} --exclude "{{regular_expression}}" {{path/to/directory}}`
`inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} --exclude "{{regex}}" {{path/to/directory}}`
- Watch a file for changes, exiting when no event occurs for 30 seconds:

View file

@ -11,7 +11,7 @@
`logread -l {{n}}`
- Filter messages by (Keyword/Regular Expression):
- Filter messages by (Keyword/`regex`):
`logread -e {{pattern}}`

View file

@ -11,7 +11,7 @@
`mate-search-tool --start --named={{string}} --path={{path/to/directory}}`
- Search files with name matching a specific regular expression:
- Search files with name matching a specific `regex`:
`mate-search-tool --start --regex={{string}} --path={{path/to/directory}}`

View file

@ -19,6 +19,6 @@
`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -wildcards -e "{{*.gz}}"`
- Create or append files and directories to a squashfs filesystem, [e]xcluding those matching a regular expression:
- Create or append files and directories to a squashfs filesystem, [e]xcluding those matching a `regex`:
`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -regex -e "{{regular_expression}}"`
`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -regex -e "{{regex}}"`

View file

@ -16,7 +16,7 @@
`nala purge {{package}}`
- Search package names and descriptions using a word, regex (default) or glob:
- Search package names and descriptions using a word, `regex` (default) or glob:
`nala search "{{pattern}}"`

View file

@ -15,7 +15,7 @@
`nl {{[-b|--body-numbering]}} {{a|n}} {{path/to/file}}`
- Number only the body lines that match a basic regular expression (BRE) [p]attern:
- Number only the body lines that match a basic `regex` (BRE) [p]attern:
`nl {{[-b|--body-numbering]}} p'FooBar[0-9]' {{path/to/file}}`

View file

@ -12,9 +12,9 @@
`pacman -F {{filename}}`
- Find the package that owns a specific [F]ile, using a regular e[x]pression:
- Find the package that owns a specific [F]ile, using a `rege[x]`:
`pacman -Fx '{{regular_expression}}'`
`pacman -Fx '{{regex}}'`
- List only the package names:

View file

@ -16,7 +16,7 @@
`sudo pacman -Syu --noconfirm {{package}}`
- [s]earch the package database for a regular expression or keyword:
- [s]earch the package database for a `regex` or keyword:
`pacman -Ss "{{search_pattern}}"`

View file

@ -17,7 +17,7 @@
`sudo pacman -Rs {{package}}`
- Search ([s]) the package database for a regular expression or keyword:
- Search ([s]) the package database for a `regex` or keyword:
`pacman -Ss "{{search_pattern}}"`

View file

@ -4,7 +4,7 @@
> Note: This page refers to the command from the `perl-rename` Arch Linux package.
> More information: <https://manned.org/rename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):
- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found):
`rename {{'s/foo/bar/'}} {{*}}`

View file

@ -4,7 +4,7 @@
> Note: This page refers to the command from the `prename` Fedora package.
> More information: <https://manned.org/prename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):
- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found):
`rename {{'s/foo/bar/'}} {{*}}`

View file

@ -7,7 +7,7 @@
`rnm -ss {{old}} -rs {{new}} {{path/to/directory}}`
- Use a fixed (literal) search and replace string instead of regex:
- Use a fixed (literal) search and replace string instead of `regex`:
`rnm -ssf {{old}} -rs {{new}} {{path/to/files}}`

View file

@ -4,15 +4,15 @@
> See also: `awk`, `ed`.
> More information: <https://www.gnu.org/software/sed/manual/sed.html>.
- Replace `apple` with `mango` on all lines using basic regex, print to `stdout`:
- Replace `apple` with `mango` on all lines using basic `regex`, print to `stdout`:
`{{command}} | sed 's/apple/mango/g'`
- Replace `apple` with `APPLE` on all lines using extended regex, print to `stdout`:
- Replace `apple` with `APPLE` on all lines using extended `regex`, print to `stdout`:
`{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'`
- Use basic regex to replace `apple` with `mango` and `orange` with `lime` in-place in a file (overwriting original file):
- Use basic `regex` to replace `apple` with `mango` and `orange` with `lime` in-place in a file (overwriting original file):
`sed {{[-i|--in-place]}} -e 's/apple/mango/g' -e 's/orange/lime/g' {{path/to/file}}`

View file

@ -12,11 +12,11 @@
`sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
- Add a user-defined rule that labels any path which matches a PCRE regex:
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
- Delete a user-defined rule using its PCRE regex:
- Delete a user-defined rule using its PCRE `regex`:
`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`

View file

@ -19,6 +19,6 @@
`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"`
- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a regular expression:
- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a `regex`:
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"`
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regex}}"`

View file

@ -15,7 +15,7 @@
`whatis --wildcard {{net*}}`
- Search man page descriptions with a regular expression:
- Search man page descriptions with a `regex`:
`whatis --regex '{{wish[0-9]\.[0-9]}}'`

View file

@ -4,9 +4,9 @@
> See also: `xbps`.
> More information: <https://manned.org/xbps-query.1>.
- Search for a package in remote repositories using a regular expression or a keyword (if `--regex` is omitted):
- Search for a package in remote repositories using a `regex` or a keyword (if `--regex` is omitted):
`xbps-query {{[-s|--search]}} {{regular_expression|keyword}} --repository --regex`
`xbps-query {{[-s|--search]}} {{regex|keyword}} --repository --regex`
- Show information about an installed package:

View file

@ -4,7 +4,7 @@
> See also: `awk`, `ed`.
> More information: <https://man.netbsd.org/sed.1>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed 's/apple/mango/g'`
@ -20,7 +20,7 @@
`{{command}} | sed -fg {{path/to/script.sed}}`
- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed -E 's/(apple)/\U\1/g'`
@ -28,6 +28,6 @@
`{{command}} | sed -n '1p'`
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place:
`sed -i 's/apple/mango/g' {{path/to/file}}`

View file

@ -4,7 +4,7 @@
> See also: `awk`, `ed`.
> More information: <https://man.openbsd.org/sed.1>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed 's/apple/mango/g'`
@ -16,7 +16,7 @@
`{{command}} | sed -fa {{path/to/script.sed}}`
- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed -E 's/(apple)/\U\1/g'`
@ -24,6 +24,6 @@
`{{command}} | sed -n '1p'`
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place:
`sed -i 's/apple/mango/g' {{path/to/file}}`

View file

@ -1,6 +1,6 @@
# rename
> Rename a file or group of files with a regular expression.
> Rename a file or group of files with a `regex`.
> More information: <https://keith.github.io/xcode-man-pages/rename.2.html>.
- Replace `from` with `to` in the filenames of the specified files:

View file

@ -4,7 +4,7 @@
> See also: `awk`, `ed`.
> More information: <https://keith.github.io/xcode-man-pages/sed.1.html>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed 's/apple/mango/g'`
@ -12,7 +12,7 @@
`{{command}} | sed -f {{path/to/script_file.sed}}`
- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`:
- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`:
`{{command}} | sed -E 's/(apple)/\U\1/g'`
@ -20,6 +20,6 @@
`{{command}} | sed -n '1p'`
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a `file` and save a backup of the original to `file.bak`:
- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a `file` and save a backup of the original to `file.bak`:
`sed -i bak 's/apple/mango/g' {{path/to/file}}`

Some files were not shown because too many files have changed in this diff Show more