Skip to content

Commit

Permalink
grep: update translations (tldr-pages#12962)
Browse files Browse the repository at this point in the history
  • Loading branch information
spageektti authored Jun 13, 2024
1 parent d387240 commit 122cdf8
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 60 deletions.
12 changes: 6 additions & 6 deletions pages.da/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- Søg efter en eksakt streng (deaktiverer regulære udtryk):

`grep --fixed-strings "{{eksakt_streng}}" {{sti/til/fil}}`
`grep {{-F|--fixed-strings}} "{{eksakt_streng}}" {{sti/til/fil}}`

- Søg efter et mønster i alle filer, pånær binære, rekursivt i en mappe. Vis linjenumre der matcher til mønstret:

`grep --recursive --line-number --binary-files {{without-match}} "{{søgemønster}}" {{sti/til/mappe}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{søgemønster}}" {{sti/til/mappe}}`

- Brug udvidede regulære udtryk (understøtter `?`, `+`, `{}`, `()` og `|`), i case-insensitive modus:

`grep --extended-regexp --ignore-case "{{søgemønster}}" {{sti/til/fil}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{søgemønster}}" {{sti/til/fil}}`

- Print 3 linjer af kontekst omkring, før eller efter hvert match:

`grep --{{context|before-context|after-context}} {{3}} "{{søgemønster}}" {{sti/til/fil}}`

- Print, filnavn og linjenummer for hvert match, med farveoutput:

`grep --with-filename --line-number --color=always "{{søgemønster}}" {{sti/til/fil}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{søgemønster}}" {{sti/til/fil}}`

- Søg efter linjer som matcher et mønster. Print kun den matchende tekst:

`grep --only-matching "{{søgemønster}}" {{sti/til/fil}}`
`grep {{-o|--only-matching}} "{{søgemønster}}" {{sti/til/fil}}`

- Søg i `stdin` efter linjer der ikke matcher et mønster:

`cat {{sti/til/fil}} | grep --invert-match "{{søgemønster}}"`
`cat {{sti/til/fil}} | grep {{-v|--invert-match}} "{{søgemønster}}"`
4 changes: 2 additions & 2 deletions pages.de/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

- Suche nach einem exakten Ausdruck:

`grep --fixed-strings "{{exakter_ausdruck}}" {{pfad/zu/datei}}`
`grep {{-F|--fixed-strings}} "{{exakter_ausdruck}}" {{pfad/zu/datei}}`

- Benutze erweiterte reguläre Ausdrücke (unterstützt `?`, `+`, `{}`, `()` und `|`) ohne Beachtung der Groß-, Kleinschreibung:

`grep --extended-regexp --ignore-case "{{ausdruck}}" {{pfad/zu/datei}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{ausdruck}}" {{pfad/zu/datei}}`

- Zeige 3 Zeilen Kontext um [C], vor [B] oder nach [A] jedem Ergebnis:

Expand Down
12 changes: 6 additions & 6 deletions pages.es/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- Busca una cadena exacta (desactiva las expresiones regulares):

`grep --fixed-strings "{{cadena_exacta}}" {{ruta/al/archivo}}`
`grep {{-F|--fixed-strings}} "{{cadena_exacta}}" {{ruta/al/archivo}}`

- Busca un patrón en todos los archivos de forma recursiva en un directorio, mostrando los números de línea de las coincidencias, ignorando los archivos binarios:

`grep --recursive --line-number --binary-files={{sin-parejamiento}} "{{patrón_de_búsqueda}}" {{ruta/al/directorio}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{sin-parejamiento}} "{{patrón_de_búsqueda}}" {{ruta/al/directorio}}`

- Utiliza expresiones regulares extendidas (admite `?`, `+`, `{}`, `()` y `|`), sin distinguir entre mayúsculas y minúsculas:

`grep --extended-regexp --ignore-case " {{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`

- Imprime 3 líneas de contexto alrededor, antes o después de cada coincidencia:

`grep --{{context|before-context|after-context}}={{3}} "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`

- Imprime el nombre del archivo y el número de línea de cada coincidencia con salida en color:

`grep --with-filename --line-number --color=always "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`

- Busca líneas que coincidan con un patrón e imprime solo el texto coincidente:

`grep --only-matching "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
`grep {{-o|--only-matching}} "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`

- Busca `stdin` en las líneas que no coincidan con un patrón:

`cat {{ruta/al/archivo}} | grep --invert-match "{{patrón_de_busqueda}}"`
`cat {{ruta/al/archivo}} | grep {{-v|--invert-match}} "{{patrón_de_busqueda}}"`
12 changes: 6 additions & 6 deletions pages.fa/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- جستجو یک عبارت خاص (معادل مقایسه رشته ای) :

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

- جستجو بازگشتی یک الگو در تمامی فایل های یک پوشه، نمایش تمامی خطوط منطبق، فایل های باینری را رد میکند:

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

- استفاده از عبارات با قاعده توسعه یافته (با پشتیبانی از `?`، `+`، `{}`، `()` و `|`)، در حالت حساس به بزرگی کوچکی کاراکتر ها :

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

- چاپ 3 خط از قبل و بعد محل انطباق:

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

- چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی :

`grep --with-filename --line-number --color=always "{{search_pattern}}" {{path/to/file}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{search_pattern}}" {{path/to/file}}`

- جستجوی خطوط منطبق، چاپ متن منطبق :

`grep --only-matching "{{search_pattern}}" {{path/to/file}}`
`grep {{-o|--only-matching}} "{{search_pattern}}" {{path/to/file}}`

- ورودی استاندارد (stdin) رو برای الگوهایی که منطبق نیستند جستجو میکند :

`cat {{path/to/file}} | grep --invert-match "{{search_pattern}}"`
`cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"`
8 changes: 4 additions & 4 deletions pages.fr/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@

- Recherche en ignorant la casse :

`grep --fixed-strings "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`
`grep {{-F|--fixed-strings}} "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`

- Recherche récursivement (en ignorant les fichiers non-texte) dans le dossier courant une chaîne de caractères précise :

`grep --recursive --line-number "{{chaîne_recherchée}}" .`
`grep {{-r|--recursive}} {{-n|--line-number}} "{{chaîne_recherchée}}" .`

- Utilise des expressions régulières étendues (supporte `?`, `+`, `{}`, `()` et `|`) :

`grep --extended-regexp {{expression_régulière}} {{chemin/vers/fichier}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} {{expression_régulière}} {{chemin/vers/fichier}}`

- Affiche 3 lignes de [C]ontexte, avant ([B]efore), ou [A]près chaque concordance :

`grep --{{context|before-context|after-context}}={{3}} "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`

- Affiche le nom du fichier avec la ligne correspondante pour chaque concordance :

`grep --with-filename --line-number "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`

- Utilise l'entrée standard au lieu d'un fichier :

Expand Down
12 changes: 6 additions & 6 deletions pages.ko/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- 정규표현식을 사용하지 않고 정확히 일치하는 문자열 검색:

`grep --fixed-strings "{{문자열}}" {{파일/의/경로}}`
`grep {{-F|--fixed-strings}} "{{문자열}}" {{파일/의/경로}}`

- 재귀적으로 디렉토리 안의 바이너리 파일을 제외한 모든 파일 안에서 패턴을 검색하고, 일치하는 줄의 번호를 보여줌:

`grep --recursive --line-number --binary-files={{without-match}} "{{검색_패턴}}" {{디렉토리/의/경로}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{검색_패턴}}" {{디렉토리/의/경로}}`

- 대소문자를 구분하지 않는 모드에서 확장된 정규표현식 사용 (`?`, `+`, `{}`, `()` 그리고 `|` 를 지원):

`grep --extended-regexp --ignore-case "{{검색_패턴}}" {{파일/의/경로}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{검색_패턴}}" {{파일/의/경로}}`

- 일치하는 문자열 주변, 이전 혹은 이후의 3줄을 출력:

`grep --{{context|before-context|after-context}}={{3}} "{{검색_패턴}}" {{파일/의/경로}}`

- 각각의 일치하는 문자열의 파일 이름과 줄 번호 출력:

`grep --with-filename --line-number --color=always "{{검색_패턴}}" {{파일/의/경로}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{검색_패턴}}" {{파일/의/경로}}`

- 패턴과 일치하는 줄을 검색하고, 일치하는 문자만 출력:

`grep --only-matching "{{검색_패턴}}" {{파일/의/경로}}`
`grep {{-o|--only-matching}} "{{검색_패턴}}" {{파일/의/경로}}`

- 패턴과 일치하지 않는 라인에 대한 `stdin` 검색:

`cat {{파일/의/경로}} | grep --invert-match "{{검색_패턴}}"`
`cat {{파일/의/경로}} | grep {{-v|--invert-match}} "{{검색_패턴}}"`
12 changes: 6 additions & 6 deletions pages.pt_BR/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- Pesquisa por uma string exata (desabilita expressões regulares):

`grep --fixed-strings "{{string_exata}}" {{caminho/para/arquivo}}`
`grep {{-F|--fixed-strings}} "{{string_exata}}" {{caminho/para/arquivo}}`

- Pesquisa por um padrão em todos os arquivos recursivamente em um diretório, mostrando o número das linhas das correspondências, ignorando arquivos binários:

`grep --recursive --line-number --binary-files={{without-match}} "{{padrão_pesquisado}}" {{caminho/para/diretório}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{padrão_pesquisado}}" {{caminho/para/diretório}}`

- Usa expressões regulares estendidas (suporta `?`, `+`, `{}`, `()` and `|`), no modo insensível a maiúsculas e minúsculas:

`grep --extended-regexp --ignore-case "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`

- Imprime 3 linhas de contexto em volta, antes ou depois de cada correspondência:

`grep --{{context|before-context|after-context}}={{3}} "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`

- Imprime o nome do arquivo e o número da linha para cada correspondência:

`grep --with-filename --line-number --color=always "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`

- Pesquisa por linhas que correspondem a um padrão, imprimindo apenas o texto correspondido:

`grep --only-matching "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
`grep {{-o|--only-matching}} "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`

- Pesquisa `stdin` para linhas que não correspondem a um padrão:

`cat {{caminho/para/arquivo}} | grep --invert-match "{{padrão_pesquisado}}"`
`cat {{caminho/para/arquivo}} | grep {{-v|--invert-match}} "{{padrão_pesquisado}}"`
12 changes: 6 additions & 6 deletions pages.ru/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- Искать по заданной подстроке (регулярные выражения отключены):

`grep --fixed-strings "{{заданная_подстрока}}" {{путь/к/файлу}}`
`grep {{-F|--fixed-strings}} "{{заданная_подстрока}}" {{путь/к/файлу}}`

- Искать по шаблону во всех файлах в директории рекурсивно, показывая номера строк, там где подстрока была найдена, исключая бинарные(двоичные) файлы:

`grep --recursive --line-number --binary-files={{without-match}} "{{шаблон_поиска}}" {{путь/к/директории}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{шаблон_поиска}}" {{путь/к/директории}}`

- Искать, используя расширенные регулярные выражения (поддержка `?`, `+`, `{}`, `()` и `|`), без учета регистра:

`grep --extended-regexp --ignore-case "{{шаблон_поиска}}" {{путь/к/файлу}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{шаблон_поиска}}" {{путь/к/файлу}}`

- Вывести 3 строки содержимого, до или после каждого совпадения:

`grep --{{context|before-context|after-context}}={{3}} "{{шаблон_поиска}}" {{путь/к/файлу}}`

- Вывести имя файла и номер строки для каждого совпадения:

`grep --with-filename --line-number --color=always "{{шаблон_поиска}}" {{путь/к/файлу}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{шаблон_поиска}}" {{путь/к/файлу}}`

- Искать строки, где есть совпадение по шаблону поиска, вывод только совпадающей части текста:

`grep --only-matching "{{шаблон_поиска}}" {{путь/к/файлу}}`
`grep {{-o|--only-matching}} "{{шаблон_поиска}}" {{путь/к/файлу}}`

- Искать строки в стандартном потоке ввода которые не совпадают с шаблоном поиска:

`cat {{путь/к/файлу}} | grep --invert-match "{{шаблон_поиска}}"`
`cat {{путь/к/файлу}} | grep {{-v|--invert-match}} "{{шаблон_поиска}}"`
12 changes: 6 additions & 6 deletions pages.ta/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- தேடுகுறித்தொடரல்லா உருச்சரத்திற்குத் தேடு:

`grep --fixed-strings "{{உருச்சரம்}}" {{கோப்பு/பாதை}}`
`grep {{-F|--fixed-strings}} "{{உருச்சரம்}}" {{கோப்பு/பாதை}}`

- அடைவிலும் சேய் அடைவுகளிலுமுள்ள இருமக் கோப்பல்லா அனைத்துக் கோப்புகளையும் தேடு; பொருத்தங்களின் வரி எண்ணைக் காட்டு:

`grep --recursive --line-number --binary-files={{without-match}} "{{தேடுதொடர்}}" {{அடைவிற்குப்/பாதை}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{தேடுதொடர்}}" {{அடைவிற்குப்/பாதை}}`

- எழுத்துயர்நிலை கருதாது விரிவுபட்ட தேடுகுறித்தொடர்களுடன் (`?`, `+`, `{}`, `|` ஆகியவற்றைப் பயன்படுத்தலாம்) தேடு:

`grep --extended-regexp --ignore-case "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`

- ஒவ்வொருப் பொருத்தத்திற்கும் சூழ்ந்த, முந்தைய அல்லது பிந்தைய 3 வரிகளைக் காட்டு:

`grep --{{context|before-context|after-context}}={{3}} "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`

- வண்ண வெளியீட்டில் ஒவ்வொரு பொருத்தத்திற்கும் கோப்பு பெயர் மற்றும் வரி எண்ணை அச்சிடவும்:

`grep --with-filename --line-number --color=always "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`

- தேடுதொடருக்குத் தேடு, ஆனால் பொருந்திய பகுதிகளை மட்டும் காட்டு:

`grep --only-matching "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
`grep {{-o|--only-matching}} "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`

- இயல் உள்ளீட்டில் தேடுதொடருக்குப் பொருந்தா வரிகளை மட்டும் காட்டு:

`cat {{கோப்பு/பாதை}} | grep --invert-match "{{தேடுதொடர்}}"`
`cat {{கோப்பு/பாதை}} | grep {{-v|--invert-match}} "{{தேடுதொடர்}}"`
12 changes: 6 additions & 6 deletions pages.tr/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- Tam bir dize ara (düzenli ifadeleri devre dışı bırakır):

`grep --fixed-strings "{{tam_dize}}" {{dosya/yolu}}`
`grep {{-F|--fixed-strings}} "{{tam_dize}}" {{dosya/yolu}}`

- Bir dizindeki tüm dosyalarda bir kalıbı tekrarlı olarak ara, eşleşmelerin satır numaralarını göster, binary dosyaları göz ardı et:

`grep --recursive --line-number --binary-files={{without-match}} "{{aranan_kalıp}}" {{dosya/yolu}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{aranan_kalıp}}" {{dosya/yolu}}`

- Büyük/küçük harfe duyarsız modda genişletilmiş düzenli ifadeleri (`?`, `+`, `{}`, `()` ve `|` destekler) kullan:

`grep --extended-regexp --ignore-case "{{aranan_kalıp}}" {{dosya/yolu}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{aranan_kalıp}}" {{dosya/yolu}}`

- Her eşleşmenin etrafında, öncesinde veya sonrasında 3 satır içerik yazdır:

`grep --{{context|before-context|after-context}}={{3}} "{{aranan_kalıp}}" {{dosya/yolu}}`

- Renkli çıktı ile her eşleşme için dosya adını ve satır numarasını yazdır:

`grep --with-filename --line-number --color=always "{{aranan_kalıp}}" {{dosya/yolu}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{aranan_kalıp}}" {{dosya/yolu}}`

- Bir kalıpla eşleşen satırları ara, yalnızca eşleşen metni yazdır:

`grep --only-matching "{{aranan_kalıp}}" {{dosya/yolu}}`
`grep {{-o|--only-matching}} "{{aranan_kalıp}}" {{dosya/yolu}}`

- Bir kalıpla eşleşmeyen satırlar için `stdin`'de arama yap:

`cat {{dosya/yolu}} | grep --invert-match "{{aranan_kalıp}}"`
`cat {{dosya/yolu}} | grep {{-v|--invert-match}} "{{aranan_kalıp}}"`
12 changes: 6 additions & 6 deletions pages.zh/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@

- 在文件中精确地查找字符串(禁用正则表达式):

`grep --fixed-strings "{{字符串}}" {{路径/到/文件}}`
`grep {{-F|--fixed-strings}} "{{字符串}}" {{路径/到/文件}}`

- 在指定目录下的所有文件中递归地查找模式,显示匹配的行号并忽略二进制文件:

`grep --recursive --line-number --binary-files={{without-match}} "{{模式字符串}}" {{路径/到/目录}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{模式字符串}}" {{路径/到/目录}}`

- 使用大小写不敏感的扩展正则表达式(支持 `?``+``{}``()``|`):

`grep --extended-regexp --ignore-case "{{模式字符串}}" {{路径/到/文件}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{模式字符串}}" {{路径/到/文件}}`

- 在每个匹配前后、之前或之后打印 3 行上下文:

`grep --{{context|before-context|after-context}}={{3}} "{{模式字符串}}" {{路径/到/文件}}`

- 以带有颜色的方式,打印每个匹配的文件名和行号:

`grep --with-filename --line-number --color=always "{{模式字符串}}" {{路径/到/文件}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{模式字符串}}" {{路径/到/文件}}`

- 只打印文件中与模式匹配的行:

`grep --only-matching "{{模式字符串}}" {{路径/到/文件}}`
`grep {{-o|--only-matching}} "{{模式字符串}}" {{路径/到/文件}}`

-`stdin`(标准输入)中查找与模式不匹配的行:

`cat {{路径/到/文件}} | grep --invert-match "{{模式字符串}}"`
`cat {{路径/到/文件}} | grep {{-v|--invert-match}} "{{模式字符串}}"`

0 comments on commit 122cdf8

Please sign in to comment.