diff --git a/pages/android/logcat.md b/pages/android/logcat.md index 82fd3d6ac7..9834b08cab 100644 --- a/pages/android/logcat.md +++ b/pages/android/logcat.md @@ -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: diff --git a/pages/common/[[.md b/pages/common/[[.md index 304e17eebb..a56a392826 100644 --- a/pages/common/[[.md +++ b/pages/common/[[.md @@ -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}} ]]` diff --git a/pages/common/ack.md b/pages/common/ack.md index 417437aa62..db86ac518a 100644 --- a/pages/common/ack.md +++ b/pages/common/ack.md @@ -4,7 +4,7 @@ > See also: `rg`, which is much faster. > More information: . -- 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}}"` diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index 8e2b9e6f32..af0d97ceb0 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -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: diff --git a/pages/common/ag.md b/pages/common/ag.md index eb7db8a61d..aa074de346 100644 --- a/pages/common/ag.md +++ b/pages/common/ag.md @@ -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)$}}'` diff --git a/pages/common/apropos.md b/pages/common/apropos.md index 75083597f9..c484d003c5 100644 --- a/pages/common/apropos.md +++ b/pages/common/apropos.md @@ -3,14 +3,14 @@ > Search the manual pages for names and descriptions. > More information: . -- 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}}` diff --git a/pages/common/brew-search.md b/pages/common/brew-search.md index 253c8ed993..e425407f64 100644 --- a/pages/common/brew-search.md +++ b/pages/common/brew-search.md @@ -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: diff --git a/pages/common/bzegrep.md b/pages/common/bzegrep.md index 7f0c6b9870..3fb9260b9a 100644 --- a/pages/common/bzegrep.md +++ b/pages/common/bzegrep.md @@ -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: . -- 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}}` diff --git a/pages/common/bzgrep.md b/pages/common/bzgrep.md index 9295b26b43..bbb8cfa13c 100644 --- a/pages/common/bzgrep.md +++ b/pages/common/bzgrep.md @@ -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}}` diff --git a/pages/common/cariddi.md b/pages/common/cariddi.md index dfdad9ca9d..72ed965701 100644 --- a/pages/common/cariddi.md +++ b/pages/common/cariddi.md @@ -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: . -- 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` diff --git a/pages/common/cbt.md b/pages/common/cbt.md index 2ddd2efec7..c5665e51cf 100644 --- a/pages/common/cbt.md +++ b/pages/common/cbt.md @@ -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}}` diff --git a/pages/common/csvgrep.md b/pages/common/csvgrep.md index bfae6aa229..370b206615 100644 --- a/pages/common/csvgrep.md +++ b/pages/common/csvgrep.md @@ -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": diff --git a/pages/common/ctest.md b/pages/common/ctest.md index 0124712de2..9577651e8b 100644 --- a/pages/common/ctest.md +++ b/pages/common/ctest.md @@ -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}}$'` diff --git a/pages/common/dlv.md b/pages/common/dlv.md index 8112f63201..e10af08f1a 100644 --- a/pages/common/dlv.md +++ b/pages/common/dlv.md @@ -25,4 +25,4 @@ - Compile and begin tracing a program: -`dlv trace {{package}} --regexp '{{regular_expression}}'` +`dlv trace {{package}} --regexp '{{regex}}'` diff --git a/pages/common/ed.md b/pages/common/ed.md index e997daca2e..122897b3c3 100644 --- a/pages/common/ed.md +++ b/pages/common/ed.md @@ -30,7 +30,7 @@ - Replace a string with a specific replacement for all lines: -`,s/{{regular_expression}}/{{replacement}}/g` +`,s/{{regex}}/{{replacement}}/g` - Exit `ed`: diff --git a/pages/common/egrep.md b/pages/common/egrep.md index 2e0e4d1a65..dc4a8c674c 100644 --- a/pages/common/egrep.md +++ b/pages/common/egrep.md @@ -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: . - Search for a pattern within a file: diff --git a/pages/common/ex.md b/pages/common/ex.md index 93c58fbf55..4e7f333519 100644 --- a/pages/common/ex.md +++ b/pages/common/ex.md @@ -20,9 +20,9 @@ `/{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`%s/{{regular_expression}}/{{replacement}}/g` +`%s/{{regex}}/{{replacement}}/g` - Insert text: diff --git a/pages/common/exrex.md b/pages/common/exrex.md index a8c8e82500..54930df71f 100644 --- a/pages/common/exrex.md +++ b/pages/common/exrex.md @@ -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: . -- 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}}'` diff --git a/pages/common/fastmod.md b/pages/common/fastmod.md index dbf664ce8c..7405aced03 100644 --- a/pages/common/fastmod.md +++ b/pages/common/fastmod.md @@ -4,15 +4,15 @@ > Regexes are matched by Rust regex crate. > More information: . -- 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}}` diff --git a/pages/common/gdu.md b/pages/common/gdu.md index ca1946e035..bda0cb4311 100644 --- a/pages/common/gdu.md +++ b/pages/common/gdu.md @@ -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]+}}'` diff --git a/pages/common/gem.md b/pages/common/gem.md index 500029c8de..4d038cbeec 100644 --- a/pages/common/gem.md +++ b/pages/common/gem.md @@ -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: diff --git a/pages/common/git-annotate.md b/pages/common/git-annotate.md index b16e4b08e0..372b8943f7 100644 --- a/pages/common/git-annotate.md +++ b/pages/common/git-annotate.md @@ -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}}` diff --git a/pages/common/git-fame.md b/pages/common/git-fame.md index dbe8b22c65..d7517117de 100644 --- a/pages/common/git-fame.md +++ b/pages/common/git-fame.md @@ -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: diff --git a/pages/common/git-sed.md b/pages/common/git-sed.md index f0f6f04c1f..2a3b42fda8 100644 --- a/pages/common/git-sed.md +++ b/pages/common/git-sed.md @@ -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}}'` diff --git a/pages/common/grep.md b/pages/common/grep.md index e7b0b5f662..a284f39e8a 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -1,13 +1,13 @@ # grep -> Find patterns in files using regular expressions. +> Find patterns in files using `regex`es. > More information: . - 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}}` diff --git a/pages/common/grex.md b/pages/common/grex.md index e90347438d..ae868a7f01 100644 --- a/pages/common/grex.md +++ b/pages/common/grex.md @@ -1,13 +1,13 @@ # grex -> Generate regular expressions. +> Generate `regex`s. > More information: . -- 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}}` diff --git a/pages/common/httpflow.md b/pages/common/httpflow.md index e649cba618..44765634f0 100644 --- a/pages/common/httpflow.md +++ b/pages/common/httpflow.md @@ -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: diff --git a/pages/common/ippfind.md b/pages/common/ippfind.md index 20714e8e5b..c5d39771ca 100644 --- a/pages/common/ippfind.md +++ b/pages/common/ippfind.md @@ -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 \;` diff --git a/pages/common/jest.md b/pages/common/jest.md index 3cfadbfbb4..1f733f4320 100644 --- a/pages/common/jest.md +++ b/pages/common/jest.md @@ -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: diff --git a/pages/common/linkchecker.md b/pages/common/linkchecker.md index 5849cc8204..c8bb01b41a 100644 --- a/pages/common/linkchecker.md +++ b/pages/common/linkchecker.md @@ -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: diff --git a/pages/common/mlr.md b/pages/common/mlr.md index cc20ddef39..d9cc6ee245 100644 --- a/pages/common/mlr.md +++ b/pages/common/mlr.md @@ -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}}` diff --git a/pages/common/mocha.md b/pages/common/mocha.md index 210e545ef9..c797814012 100644 --- a/pages/common/mocha.md +++ b/pages/common/mocha.md @@ -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: diff --git a/pages/common/ncu.md b/pages/common/ncu.md index f91695cbf9..ea1ea37925 100644 --- a/pages/common/ncu.md +++ b/pages/common/ncu.md @@ -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/}}` diff --git a/pages/common/ngrep.md b/pages/common/ngrep.md index 79f3730389..71c1905331 100644 --- a/pages/common/ngrep.md +++ b/pages/common/ngrep.md @@ -1,6 +1,6 @@ # ngrep -> Filter network traffic packets using regular expressions. +> Filter network traffic packets using `regex`. > More information: . - Capture traffic of all interfaces: diff --git a/pages/common/nix-classic.md b/pages/common/nix-classic.md index 55d2e7e77b..ac6154f2ad 100644 --- a/pages/common/nix-classic.md +++ b/pages/common/nix-classic.md @@ -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: diff --git a/pages/common/nl.md b/pages/common/nl.md index 4370335171..6d3c7f6321 100644 --- a/pages/common/nl.md +++ b/pages/common/nl.md @@ -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}}` diff --git a/pages/common/nvim.md b/pages/common/nvim.md index fcf0bcb826..e326b70884 100644 --- a/pages/common/nvim.md +++ b/pages/common/nvim.md @@ -25,9 +25,9 @@ `{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`<:>%s/{{regular_expression}}/{{replacement}}/g` +`<:>%s/{{regex}}/{{replacement}}/g` - Enter normal mode and save (write) the file, and quit: diff --git a/pages/common/onefetch.md b/pages/common/onefetch.md index da387ef4e7..070fc6ac08 100644 --- a/pages/common/onefetch.md +++ b/pages/common/onefetch.md @@ -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): diff --git a/pages/common/perl.md b/pages/common/perl.md index 2d99d80428..eceab0cd91 100644 --- a/pages/common/perl.md +++ b/pages/common/perl.md @@ -3,15 +3,15 @@ > The Perl 5 language interpreter. > More information: . -- 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}}` diff --git a/pages/common/pt.md b/pages/common/pt.md index c3b23958b3..fe00e53186 100644 --- a/pages/common/pt.md +++ b/pages/common/pt.md @@ -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]*$}}'` diff --git a/pages/common/ptargrep.md b/pages/common/ptargrep.md index 5f8b991101..2c06f0241d 100644 --- a/pages/common/ptargrep.md +++ b/pages/common/ptargrep.md @@ -1,6 +1,6 @@ # ptargrep -> Find regular expression patterns in tar archive files. +> Find `regex` patterns in tar archive files. > More information: . - Search for a pattern within one or more tar archives: diff --git a/pages/common/recsel.md b/pages/common/recsel.md index 4e345ce057..47c92aacc8 100644 --- a/pages/common/recsel.md +++ b/pages/common/recsel.md @@ -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}}` diff --git a/pages/common/repren.md b/pages/common/repren.md index 901de56b2b..74621d29dc 100644 --- a/pages/common/repren.md +++ b/pages/common/repren.md @@ -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: diff --git a/pages/common/rg.md b/pages/common/rg.md index c7be77feb6..99ae5ccce1 100644 --- a/pages/common/rg.md +++ b/pages/common/rg.md @@ -4,7 +4,7 @@ > Aims to be a faster alternative to `grep`. > More information: . -- Recursively search current directory for a pattern (regular expression): +- Recursively search current directory for a pattern (`regex`): `rg {{pattern}}` diff --git a/pages/common/rga.md b/pages/common/rga.md index 7b778f5ecb..e1ace376f2 100644 --- a/pages/common/rga.md +++ b/pages/common/rga.md @@ -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: diff --git a/pages/common/rgrep.md b/pages/common/rgrep.md index e996f1ed4d..2e6560e31b 100644 --- a/pages/common/rgrep.md +++ b/pages/common/rgrep.md @@ -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: . @@ -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}}"` diff --git a/pages/common/ropgadget.md b/pages/common/ropgadget.md index 97b76a760e..7b634039ba 100644 --- a/pages/common/ropgadget.md +++ b/pages/common/ropgadget.md @@ -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}}` diff --git a/pages/common/ropper.md b/pages/common/ropper.md index c44f68cfa1..d1cb560e3f 100644 --- a/pages/common/ropper.md +++ b/pages/common/ropper.md @@ -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}}` diff --git a/pages/common/sd.md b/pages/common/sd.md index 2aff96d553..11d61097e7 100644 --- a/pages/common/sd.md +++ b/pages/common/sd.md @@ -3,7 +3,7 @@ > Intuitive find and replace. > More information: . -- 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+$' ''` diff --git a/pages/common/sed.md b/pages/common/sed.md index e1f382293b..7c6b2b4a97 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -4,7 +4,7 @@ > See also: `awk`, `ed`. > More information: . -- 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'` diff --git a/pages/common/smbmap.md b/pages/common/smbmap.md index 45e5db2e63..9717ca58ce 100644 --- a/pages/common/smbmap.md +++ b/pages/common/smbmap.md @@ -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}}` diff --git a/pages/common/stern.md b/pages/common/stern.md index 1a986726a5..13db743314 100644 --- a/pages/common/stern.md +++ b/pages/common/stern.md @@ -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}}` diff --git a/pages/common/stow.md b/pages/common/stow.md index 07790c0990..9abaa94146 100644 --- a/pages/common/stow.md +++ b/pages/common/stow.md @@ -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}}` diff --git a/pages/common/tac.md b/pages/common/tac.md index 2fc0c8b5c6..a17940529d 100644 --- a/pages/common/tac.md +++ b/pages/common/tac.md @@ -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 ...}}` diff --git a/pages/common/tlmgr-search.md b/pages/common/tlmgr-search.md index a8dc15033e..8272871081 100644 --- a/pages/common/tlmgr-search.md +++ b/pages/common/tlmgr-search.md @@ -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: . -- 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}}"` diff --git a/pages/common/trawl.md b/pages/common/trawl.md index 222046c398..11c7bd6035 100644 --- a/pages/common/trawl.md +++ b/pages/common/trawl.md @@ -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` diff --git a/pages/common/tre.md b/pages/common/tre.md index b0a5cbffa8..952c3d95dc 100644 --- a/pages/common/tre.md +++ b/pages/common/tre.md @@ -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: diff --git a/pages/common/tuc.md b/pages/common/tuc.md index 14ed1c3522..6ea91fb46f 100644 --- a/pages/common/tuc.md +++ b/pages/common/tuc.md @@ -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}}` diff --git a/pages/common/ugrep.md b/pages/common/ugrep.md index f7faabef22..448a3f1d5c 100644 --- a/pages/common/ugrep.md +++ b/pages/common/ugrep.md @@ -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}}"` diff --git a/pages/common/varnishlog.md b/pages/common/varnishlog.md index fecdedcb0d..a1b912ff94 100644 --- a/pages/common/varnishlog.md +++ b/pages/common/varnishlog.md @@ -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}}"'` diff --git a/pages/common/vim.md b/pages/common/vim.md index 8f00b4538b..26cc9c54d4 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -29,9 +29,9 @@ `{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`<:>%s/{{regular_expression}}/{{replacement}}/g` +`<:>%s/{{regex}}/{{replacement}}/g` - Display the line numbers: diff --git a/pages/common/vitest.md b/pages/common/vitest.md index 86ff55cb8e..b9a4c8d03f 100644 --- a/pages/common/vitest.md +++ b/pages/common/vitest.md @@ -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: diff --git a/pages/common/xzgrep.md b/pages/common/xzgrep.md index eba66aa124..1037ae38ef 100644 --- a/pages/common/xzgrep.md +++ b/pages/common/xzgrep.md @@ -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: . @@ -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}}` diff --git a/pages/common/z.md b/pages/common/z.md index 978f978975..29aea3525d 100644 --- a/pages/common/z.md +++ b/pages/common/z.md @@ -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: . - Go to a directory that contains "foo" in the name: diff --git a/pages/common/zegrep.md b/pages/common/zegrep.md index 7da62e5a18..78e6b566a3 100644 --- a/pages/common/zegrep.md +++ b/pages/common/zegrep.md @@ -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: . -- 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}}` diff --git a/pages/common/zgrep.md b/pages/common/zgrep.md index 1a026b3e37..cfeef5a574 100644 --- a/pages/common/zgrep.md +++ b/pages/common/zgrep.md @@ -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: diff --git a/pages/common/zipgrep.md b/pages/common/zipgrep.md index b7f87c14b6..ac0733b04a 100644 --- a/pages/common/zipgrep.md +++ b/pages/common/zipgrep.md @@ -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: . - Search for a pattern within a Zip archive: diff --git a/pages/common/zmore.md b/pages/common/zmore.md index 8b965124d6..26c7e68458 100644 --- a/pages/common/zmore.md +++ b/pages/common/zmore.md @@ -13,7 +13,7 @@ - Search for a pattern in the file (press `` to go to next match): -`{{regular_expression}}` +`{{regex}}` - Exit: diff --git a/pages/common/zmv.md b/pages/common/zmv.md index f9f0a03104..8d81142385 100644 --- a/pages/common/zmv.md +++ b/pages/common/zmv.md @@ -4,7 +4,7 @@ > See also `zcp` and `zln`. > More information: . -- Move files using a regular expression-like pattern: +- Move files using a `regex`-like pattern: `zmv '{{(*).log}}' '{{$1.txt}}'` diff --git a/pages/freebsd/sed.md b/pages/freebsd/sed.md index 6b37834de5..f7adcafc55 100644 --- a/pages/freebsd/sed.md +++ b/pages/freebsd/sed.md @@ -4,7 +4,7 @@ > See also: `awk`, `ed`. > More information: . -- 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}}` diff --git a/pages/linux/aide.md b/pages/linux/aide.md index 6a852809b9..0271b479ec 100644 --- a/pages/linux/aide.md +++ b/pages/linux/aide.md @@ -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: diff --git a/pages/linux/apt-file.md b/pages/linux/apt-file.md index 70150b9e35..1d87cb9b0b 100644 --- a/pages/linux/apt-file.md +++ b/pages/linux/apt-file.md @@ -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}}` diff --git a/pages/linux/aura.md b/pages/linux/aura.md index 1c9087a620..b1ff550aa5 100644 --- a/pages/linux/aura.md +++ b/pages/linux/aura.md @@ -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: diff --git a/pages/linux/auracle.md b/pages/linux/auracle.md index 0850134ec7..3c3d4389ba 100644 --- a/pages/linux/auracle.md +++ b/pages/linux/auracle.md @@ -3,9 +3,9 @@ > Interact with Arch Linux's User Repository, commonly referred to as the AUR. > More information: . -- 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: diff --git a/pages/linux/btrfs-restore.md b/pages/linux/btrfs-restore.md index c105bbaeba..8c471737eb 100644 --- a/pages/linux/btrfs-restore.md +++ b/pages/linux/btrfs-restore.md @@ -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}}` diff --git a/pages/linux/csplit.md b/pages/linux/csplit.md index ebf03fc9c3..328fc05c52 100644 --- a/pages/linux/csplit.md +++ b/pages/linux/csplit.md @@ -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}}/` diff --git a/pages/linux/esearch.md b/pages/linux/esearch.md index 31f2c006f1..e75938224c 100644 --- a/pages/linux/esearch.md +++ b/pages/linux/esearch.md @@ -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*'}}` diff --git a/pages/linux/file-rename.md b/pages/linux/file-rename.md index 5bd9a73d7d..1469dbad3b 100644 --- a/pages/linux/file-rename.md +++ b/pages/linux/file-rename.md @@ -4,7 +4,7 @@ > Note: This page refers to the command from the `rename` Debian package. > More information: . -- 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/'}} {{*}}` diff --git a/pages/linux/guix-package.md b/pages/linux/guix-package.md index 3d80491a50..8091999011 100644 --- a/pages/linux/guix-package.md +++ b/pages/linux/guix-package.md @@ -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}}"` diff --git a/pages/linux/inotifywait.md b/pages/linux/inotifywait.md index 632253f63d..68a8c44a2b 100644 --- a/pages/linux/inotifywait.md +++ b/pages/linux/inotifywait.md @@ -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: diff --git a/pages/linux/logread.md b/pages/linux/logread.md index a235cae04f..60b34c4f60 100644 --- a/pages/linux/logread.md +++ b/pages/linux/logread.md @@ -11,7 +11,7 @@ `logread -l {{n}}` -- Filter messages by (Keyword/Regular Expression): +- Filter messages by (Keyword/`regex`): `logread -e {{pattern}}` diff --git a/pages/linux/mate-search-tool.md b/pages/linux/mate-search-tool.md index e300979f8c..5eb83a3e73 100644 --- a/pages/linux/mate-search-tool.md +++ b/pages/linux/mate-search-tool.md @@ -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}}` diff --git a/pages/linux/mksquashfs.md b/pages/linux/mksquashfs.md index bc9f836b53..1be03e2def 100644 --- a/pages/linux/mksquashfs.md +++ b/pages/linux/mksquashfs.md @@ -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}}"` diff --git a/pages/linux/nala.md b/pages/linux/nala.md index ac9a736810..b42a472318 100644 --- a/pages/linux/nala.md +++ b/pages/linux/nala.md @@ -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}}"` diff --git a/pages/linux/nl.md b/pages/linux/nl.md index e4fe18c61e..1fa1937f89 100644 --- a/pages/linux/nl.md +++ b/pages/linux/nl.md @@ -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}}` diff --git a/pages/linux/pacman-files.md b/pages/linux/pacman-files.md index e0e4a8aa59..02b51c0a72 100644 --- a/pages/linux/pacman-files.md +++ b/pages/linux/pacman-files.md @@ -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: diff --git a/pages/linux/pacman-sync.md b/pages/linux/pacman-sync.md index 82963bc254..8e2c4ff596 100644 --- a/pages/linux/pacman-sync.md +++ b/pages/linux/pacman-sync.md @@ -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}}"` diff --git a/pages/linux/pacman.md b/pages/linux/pacman.md index ca0bb1ad43..69f6c26a43 100644 --- a/pages/linux/pacman.md +++ b/pages/linux/pacman.md @@ -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}}"` diff --git a/pages/linux/perl-rename.md b/pages/linux/perl-rename.md index 2ce6f90ad4..fce0047068 100644 --- a/pages/linux/perl-rename.md +++ b/pages/linux/perl-rename.md @@ -4,7 +4,7 @@ > Note: This page refers to the command from the `perl-rename` Arch Linux package. > More information: . -- 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/'}} {{*}}` diff --git a/pages/linux/prename.md b/pages/linux/prename.md index ef54dc312a..3906b62b17 100644 --- a/pages/linux/prename.md +++ b/pages/linux/prename.md @@ -4,7 +4,7 @@ > Note: This page refers to the command from the `prename` Fedora package. > More information: . -- 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/'}} {{*}}` diff --git a/pages/linux/rnm.md b/pages/linux/rnm.md index a83386fabc..326b49eda8 100644 --- a/pages/linux/rnm.md +++ b/pages/linux/rnm.md @@ -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}}` diff --git a/pages/linux/sed.md b/pages/linux/sed.md index 9332124708..6a3a52f7af 100644 --- a/pages/linux/sed.md +++ b/pages/linux/sed.md @@ -4,15 +4,15 @@ > See also: `awk`, `ed`. > More information: . -- 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}}` diff --git a/pages/linux/semanage-fcontext.md b/pages/linux/semanage-fcontext.md index 7a17ffe198..35cd39f032 100644 --- a/pages/linux/semanage-fcontext.md +++ b/pages/linux/semanage-fcontext.md @@ -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(/.*)?'}}` diff --git a/pages/linux/sqfstar.md b/pages/linux/sqfstar.md index a8c304d196..1ff283595a 100644 --- a/pages/linux/sqfstar.md +++ b/pages/linux/sqfstar.md @@ -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}}"` diff --git a/pages/linux/whatis.md b/pages/linux/whatis.md index d3491b4a78..2366698132 100644 --- a/pages/linux/whatis.md +++ b/pages/linux/whatis.md @@ -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]}}'` diff --git a/pages/linux/xbps-query.md b/pages/linux/xbps-query.md index c9b7b312f5..71d8327391 100644 --- a/pages/linux/xbps-query.md +++ b/pages/linux/xbps-query.md @@ -4,9 +4,9 @@ > See also: `xbps`. > More information: . -- 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: diff --git a/pages/netbsd/sed.md b/pages/netbsd/sed.md index 7f3e75b7dc..decf3621af 100644 --- a/pages/netbsd/sed.md +++ b/pages/netbsd/sed.md @@ -4,7 +4,7 @@ > See also: `awk`, `ed`. > More information: . -- 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}}` diff --git a/pages/openbsd/sed.md b/pages/openbsd/sed.md index 76c8da562c..5cbcdd2185 100644 --- a/pages/openbsd/sed.md +++ b/pages/openbsd/sed.md @@ -4,7 +4,7 @@ > See also: `awk`, `ed`. > More information: . -- 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}}` diff --git a/pages/osx/rename.md b/pages/osx/rename.md index 44b7578e39..dda4d3d678 100644 --- a/pages/osx/rename.md +++ b/pages/osx/rename.md @@ -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: . - Replace `from` with `to` in the filenames of the specified files: diff --git a/pages/osx/sed.md b/pages/osx/sed.md index cf3efe433f..aef99ce083 100644 --- a/pages/osx/sed.md +++ b/pages/osx/sed.md @@ -4,7 +4,7 @@ > See also: `awk`, `ed`. > More information: . -- 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}}` diff --git a/pages/osx/split.md b/pages/osx/split.md index 17b91647fa..70c22b2c12 100644 --- a/pages/osx/split.md +++ b/pages/osx/split.md @@ -7,7 +7,7 @@ `split -l 10 {{path/to/file}}` -- Split a file by a regular expression. The matching line will be the first line of the next output file: +- Split a file by a `regex`. The matching line will be the first line of the next output file: `split -p {{cat|^[dh]og}} {{path/to/file}}` diff --git a/pages/windows/es.md b/pages/windows/es.md index 390624ae22..f64d3bb006 100644 --- a/pages/windows/es.md +++ b/pages/windows/es.md @@ -8,9 +8,9 @@ `es {{search_term}}` -- Search using a regular expression: +- Search using a `regex`: -`es -r {{regex_pattern}}` +`es -r {{regex}}` - Match whole words: diff --git a/pages/windows/findstr.md b/pages/windows/findstr.md index 1a9c7ebf6d..1f729b3b9c 100644 --- a/pages/windows/findstr.md +++ b/pages/windows/findstr.md @@ -19,9 +19,9 @@ `findstr /i "{{string1 string2 ...}}" *` -- Find strings in all files using regular expressions: +- Find strings in all files using `regex`: -`findstr /r "{{expression}}" *` +`findstr /r "{{regex}}" *` - Find a literal string (containing spaces) in all text files: diff --git a/pages/windows/select-string.md b/pages/windows/select-string.md index 106ca0e116..98b10da8d1 100644 --- a/pages/windows/select-string.md +++ b/pages/windows/select-string.md @@ -9,7 +9,7 @@ `Select-String -Path "{{path\to\file}}" -Pattern '{{search_pattern}}'` -- Search for an exact string (disables regular expressions): +- Search for an exact string (disables `regex`): `Select-String -SimpleMatch "{{exact_string}}" {{path\to\file}}`