multiple pages: normalize `regular expression` instead of `regex`, `regexp` or `pattern` (#5830)

fix-hunspell-typos-042721
marchersimon 2021-05-10 11:03:12 +02:00 committed by GitHub
parent fd7936c944
commit 10728f1ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 74 additions and 66 deletions

View File

@ -18,7 +18,7 @@
- Utilise des expressions rationnelles étendues (supporte `?`, `+`, `{}`, `()` et `|`) : - Utilise des expressions rationnelles étendues (supporte `?`, `+`, `{}`, `()` et `|`) :
`grep -E {{^regex$}} {{chemin/vers/fichier}}` `grep -E {{expression_régulière}} {{chemin/vers/fichier}}`
- Affiche 3 lignes de [C]ontexte, avant ([B]efore), ou [A]près chaque concordance : - Affiche 3 lignes de [C]ontexte, avant ([B]efore), ou [A]près chaque concordance :

View File

@ -7,9 +7,13 @@
`jest` `jest`
- Exécuter les suites de test des fichiers dont les chemins correspondent aux expressions régulières indiquées : - Exécuter les suites de test de fichiers donnés :
`jest {{fichier_test1}} {{chemin/vers/fichier_test2.js}}` `jest {{chemin/vers/fichier1}} {{chemin/vers/fichier2}}`
- Exécuter les suites de test pour des fichiers, dans le répertoire courant et ses sous-répertoires, dont le chemin correspond à l'expression régulière indiquée :
`jest {{expression_régulière}} {{expression_régulière}}`
- Exécuter les tests dont les noms correspondent aux expressions régulières indiquées : - Exécuter les tests dont les noms correspondent aux expressions régulières indiquées :

View File

@ -1,6 +1,6 @@
# z # z
> Recherche les répertoires les plus utilisés et permet une navigation rapide à l'aide de chaine de caractères ou de regex. > Recherche les répertoires les plus utilisés et permet une navigation rapide à l'aide de chaine de caractères ou d'expressions régulières.
> Plus d'informations : <https://github.com/rupa/z>. > Plus d'informations : <https://github.com/rupa/z>.
- Aller dans un répertoire qui contient "foo" dans son nom : - Aller dans un répertoire qui contient "foo" dans son nom :

View File

@ -24,9 +24,9 @@
`<Esc>/{{pattern_pencarian}}<Enter>` `<Esc>/{{pattern_pencarian}}<Enter>`
- Melakukan penggantian regex pada seluruh berkas: - Melakukan penggantian ekspresi reguler pada seluruh berkas:
`<Esc>:%s/{{pattern}}/{{pengganti}}/g<Enter>` `<Esc>:%s/{{ekspresi_reguler}}/{{pengganti}}/g<Enter>`
- Menyimpan (write) berkas, dan keluar: - Menyimpan (write) berkas, dan keluar:

View File

@ -25,7 +25,7 @@
- Trova file il quale contenuto soddisfi una determinata espressione regolare: - Trova file il quale contenuto soddisfi una determinata espressione regolare:
`ag '{{regexp}}'` `ag '{{espressione_regolare}}'`
- Trova file il quale nome contiene "foo": - Trova file il quale nome contiene "foo":

View File

@ -8,9 +8,9 @@
`csvgrep -c {{1}} -m {{stringa}} {{data.csv}}` `csvgrep -c {{1}} -m {{stringa}} {{data.csv}}`
- Trova righe per le quali le colonne 3 e 4 soddisfano una certa regex: - Trova righe per le quali le colonne 3 e 4 soddisfano una certa espressione regolare:
`csvgrep -c {{3,4}} -r {{pattern_regex}} {{data.csv}}` `csvgrep -c {{3,4}} -r {{espressione_regolare}} {{data.csv}}`
- Trova righe dove la colonna "nome" NON include la stringa "Mario Rossi": - Trova righe dove la colonna "nome" NON include la stringa "Mario Rossi":

View File

@ -22,11 +22,11 @@
- Cerca un pattern nel file (usa `n`/`N` per spostarti al risultato successivo/precedente): - Cerca un pattern nel file (usa `n`/`N` per spostarti al risultato successivo/precedente):
`<Esc>/{{pattern}}<Invio>` `<Esc>/{{espressione_regolare}}<Invio>`
- Effettua una sostituzione tramite regex nell'intero file: - Effettua una sostituzione tramite espressione regolare nell'intero file:
`<Esc>:%s/{{pattern}}/{{sostituzione}}/g<Invio>` `<Esc>:%s/{{espressione_regolare}}/{{sostituzione}}/g<Invio>`
- Salva modifiche al file ed esci: - Salva modifiche al file ed esci:

View File

@ -23,7 +23,7 @@
`ack bar "{{foo bar}}" {{scieżka/do/pliku_lub_katalogu}}` `ack bar "{{foo bar}}" {{scieżka/do/pliku_lub_katalogu}}`
- Przeszukaj plik pod kątem określonego wzorca regex: - Przeszukaj plik pod kątem określonego wzorca wyrażenia regularnego:
`ack bar "{{[bB]ar \d+}}" {{scieżka/do/pliku_lub_katalogu}}` `ack bar "{{[bB]ar \d+}}" {{scieżka/do/pliku_lub_katalogu}}`

View File

@ -22,4 +22,4 @@
- Dividir um arquivo na linha que atenda a expressão regular: - Dividir um arquivo na linha que atenda a expressão regular:
`csplit {{arquivo}} /{{regex}}/` `csplit {{arquivo}} /{{expressao_regular}}/`

View File

@ -16,4 +16,4 @@
- Mostrar as entradas do histórico da linha de comandos que correspondem a uma expressão regular: - Mostrar as entradas do histórico da linha de comandos que correspondem a uma expressão regular:
`history | grep {{regex}}` `history | grep {{expressao_regular}}`

View File

@ -11,6 +11,6 @@
`logcat -f {{path/to/file}}` `logcat -f {{path/to/file}}`
- Display lines that match a regex: - Display lines that match a regular expression:
`logcat --regex {{regex}}` `logcat --regex {{regular_expression}}`

View File

@ -8,9 +8,9 @@
`csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}` `csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}`
- Find rows in which columns 3 or 4 match a certain regex pattern: - Find rows in which columns 3 or 4 match a certain regular expression:
`csvgrep -c {{3,4}} -r {{regex_pattern}} {{data.csv}}` `csvgrep -c {{3,4}} -r {{regular_expression}} {{data.csv}}`
- Find rows in which the "name" column does NOT include the string "John Doe": - Find rows in which the "name" column does NOT include the string "John Doe":

View File

@ -22,8 +22,8 @@
- Display all lines except those that contain the given regular expression: - Display all lines except those that contain the given regular expression:
`fgrep -v {{^regex$}} {{path/to/file}}` `fgrep -v {{regular_expression}} {{path/to/file}}`
- Display filenames whose content matches the regular expression at least once: - Display filenames whose content matches the regular expression at least once:
`fgrep -l {{^regex$}} {{path/to/file1}} {{path/to/file2}}` `fgrep -l {{regular_expression}} {{path/to/file1}} {{path/to/file2}}`

View File

@ -5,7 +5,7 @@
- Search for remote gem(s) and show all available versions: - Search for remote gem(s) and show all available versions:
`gem search {{regexp}} --all` `gem search {{regular_expression}} --all`
- Install latest version of a gem: - Install latest version of a gem:

View File

@ -7,7 +7,7 @@
` grex {{space_separated_strings}}` ` grex {{space_separated_strings}}`
- Generate a case-insensitive regex: - Generate a case-insensitive regular expression:
`grex -i {{space_separated_strings}}` `grex -i {{space_separated_strings}}`

View File

@ -11,9 +11,9 @@
`httpflow {{host httpbin.org or host baidu.com}}` `httpflow {{host httpbin.org or host baidu.com}}`
- Use a regexp to filter requests by urls: - Use a regular expression to filter requests by urls:
`httpflow -u '{{regex}}'` `httpflow -u '{{regular_expression}}'`
- Read packets from pcap format binary file: - Read packets from pcap format binary file:

View File

@ -7,13 +7,17 @@
`jest` `jest`
- Run the test suites from files whose paths match the given regex patterns: - Run the test suites from the given files:
`jest {{test_file1}} {{path/to/test_file2.js}}` `jest {{path/to/file1}} {{path/to/file2}}`
- Run the tests whose names match the given regex pattern: - Run the test suites from files within the current and subdirectories, whose paths match the given regular expression:
`jest --testNamePattern {{spec_name}}` `jest {{regular_expression1}} {{regular_expression2}}`
- Run the tests whose names match the given regular expression:
`jest --testNamePattern {{regular_expression}}`
- Run test suites related to a given source file: - Run test suites related to a given source file:

View File

@ -11,9 +11,9 @@
`linkchecker --check-extern {{https://example.com/}}` `linkchecker --check-extern {{https://example.com/}}`
- Ignore URLs that match a specific regex: - Ignore URLs that match a specific regular expression:
`linkchecker --ignore-url {{regex}} {{https://example.com/}}` `linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}`
- Output results to a CSV file: - Output results to a CSV file:

View File

@ -29,4 +29,4 @@
- Filter lines of a compressed CSV file treating numbers as strings: - Filter lines of a compressed CSV file treating numbers as strings:
`mlr --prepipe 'gunzip' --csv filter -S '${{fieldName}} =~ "{{regexp}}"' {{example.csv.gz}}` `mlr --prepipe 'gunzip' --csv filter -S '${{fieldName}} =~ "{{regular_expression}}"' {{example.csv.gz}}`

View File

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

View File

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

View File

@ -9,8 +9,8 @@
- Use "~" to match a string with a given regular expression: - Use "~" to match a string with a given regular expression:
`recsel -e "{{field_name}} ~ '{{pattern_regex}}' {{data.rec}}"` `recsel -e "{{field_name}} ~ '{{regular_expression}}' {{data.rec}}"`
- Use a predicate to match a name and a version: - Use a predicate to match a name and a version:
`recsel -e "name ~ '{{pattern_regex}}' && version ~ '{{pattern_regex}}'" {{data.rec}}` `recsel -e "name ~ '{{regular_expression}}' && version ~ '{{regular_expression}}'" {{data.rec}}`

View File

@ -4,33 +4,33 @@
> Aims to be a faster alternative to `grep`. > Aims to be a faster alternative to `grep`.
> More information: <https://github.com/BurntSushi/ripgrep>. > More information: <https://github.com/BurntSushi/ripgrep>.
- Recursively search the current directory for a regex pattern: - Recursively search the current directory for a regular expression:
`rg {{pattern}}` `rg {{regular_expression}}`
- Search for pattern including all .gitignored and hidden files: - Search for regular expressions including all .gitignored and hidden files:
`rg --no-ignore --hidden {{pattern}}` `rg --no-ignore --hidden {{regular_expression}}`
- Search for a pattern only in a certain filetype (e.g., html, css, etc.): - Search for a regular expression only in a certain filetype (e.g., html, css, etc.):
`rg --type {{filetype}} {{pattern}}` `rg --type {{filetype}} {{regular_expression}}`
- Search for a pattern only in a subset of directories: - Search for a regular expression only in a subset of directories:
`rg {{pattern}} {{set_of_subdirs}}` `rg {{regular_expression}} {{set_of_subdirs}}`
- Search for a pattern in files matching a glob (e.g., `README.*`): - Search for a regular expression in files matching a glob (e.g., `README.*`):
`rg {{pattern}} --glob {{glob}}` `rg {{regular_expression}} --glob {{glob}}`
- Only list matched files (useful when piping to other commands): - Only list matched files (useful when piping to other commands):
`rg --files-with-matches {{pattern}}` `rg --files-with-matches {{regular_expression}}`
- Show lines that do not match the given pattern: - Show lines that do not match the given regular expression:
`rg --invert-match {{pattern}}` `rg --invert-match {{regular_expression}}`
- Search a literal string pattern: - Search a literal string pattern:

View File

@ -2,7 +2,7 @@
> Intuitive find & replace CLI. > Intuitive find & replace CLI.
- Trim some whitespace using regex: - Trim some whitespace using a regular expression:
`{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''` `{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''`

View File

@ -5,11 +5,11 @@
- Replace the first occurrence of a regular expression in each line of a file, and print the result: - Replace the first occurrence of a regular expression in each line of a file, and print the result:
`sed 's/{{regex}}/{{replace}}/' {{filename}}` `sed 's/{{regular_expression}}/{{replace}}/' {{filename}}`
- Replace all occurrences of an extended regular expression in a file, and print the result: - Replace all occurrences of an extended regular expression in a file, and print the result:
`sed -r 's/{{regex}}/{{replace}}/g' {{filename}}` `sed -r 's/{{regular_expression}}/{{replace}}/g' {{filename}}`
- Replace all occurrences of a string in a file, overwriting the file (i.e. in-place): - Replace all occurrences of a string in a file, overwriting the file (i.e. in-place):

View File

@ -22,4 +22,4 @@
- Exclude files matching a regular expression: - Exclude files matching a regular expression:
`stow --ignore={{regex}} --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}` `stow --ignore={{regular_expression}} --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}`

View File

@ -28,9 +28,9 @@
`/{{search_pattern}}<Enter>` `/{{search_pattern}}<Enter>`
- Perform a regex substitution in the whole file: - Perform a regular expression substitution in the whole file:
`:%s/{{pattern}}/{{replacement}}/g<Enter>` `:%s/{{regular_expression}}/{{replacement}}/g<Enter>`
- Display the line numbers: - Display the line numbers:

View File

@ -1,6 +1,6 @@
# z # z
> Tracks the most used (by frecency) directories and enables quickly navigating to them using string or regex patterns. > Tracks the most used (by frecency) directories and enables quickly navigating to them using string patterns or regular expressions.
> More information: <https://github.com/rupa/z>. > More information: <https://github.com/rupa/z>.
- Go to a directory that contains "foo" in the name: - Go to a directory that contains "foo" in the name:

View File

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

View File

@ -17,4 +17,4 @@
- Search for packages that match the regular expresssion given in `pattern`: - Search for packages that match the regular expresssion given in `pattern`:
`apt-file {{search|find}} --regexp {{pattern}}` `apt-file {{search|find}} --regexp {{regular_expression}}`

View File

@ -5,7 +5,7 @@
- Display AUR packages that match a regular expression: - Display AUR packages that match a regular expression:
`auracle search '{{regex}}'` `auracle search '{{regular_expression}}'`
- Display package information for a space-separated list of AUR packages: - Display package information for a space-separated list of AUR packages:

View File

@ -22,4 +22,4 @@
- Split a file at a line matching a regular expression: - Split a file at a line matching a regular expression:
`csplit {{file}} /{{regex}}/` `csplit {{file}} /{{regular_expression}}/`

View File

@ -16,7 +16,7 @@
- Exclude files matching a regular expression: - Exclude files matching a regular expression:
`while inotifywait --recursive {{path/to/directory}} --exlude '{{regex}}'; do {{command}}; done` `while inotifywait --recursive {{path/to/directory}} --exlude '{{regular_expression}}'; do {{command}}; done`
- Wait at most 30 seconds: - Wait at most 30 seconds:

View File

@ -18,7 +18,7 @@
- Find the package that owns a specific file, using a regular expression: - Find the package that owns a specific file, using a regular expression:
`pacman --files --regex '{{search_pattern}}'` `pacman --files --regex '{{regular_expression}}'`
- List only the package names: - List only the package names:

View File

@ -24,7 +24,7 @@
- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`): - Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`):
`zgrep -E {{^regex$}} {{path/to/file}}` `zgrep -E {{regular_expression}} {{path/to/file}}`
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match: - Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:

View File

@ -1,6 +1,6 @@
# rename # rename
> Rename a file or group of files with a regex. > Rename a file or group of files with a regular expression.
- Replace `from` with `to` in the filenames of the specified files: - Replace `from` with `to` in the filenames of the specified files:

View File

@ -9,7 +9,7 @@
- Replace all occurrences of an extended regular expression in a file: - Replace all occurrences of an extended regular expression in a file:
`sed -E 's/{{regex}}/{{replace}}/g' {{filename}}` `sed -E 's/{{regular_expression}}/{{replace}}/g' {{filename}}`
- Replace all occurrences of a string [i]n a file, overwriting the file (i.e. in-place): - Replace all occurrences of a string [i]n a file, overwriting the file (i.e. in-place):