grep: update translations (#12962)

pull/28/head
spageektti 2024-06-13 19:08:33 +02:00 committed by GitHub
parent d387240363
commit 122cdf8cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 60 additions and 60 deletions

View File

@ -9,15 +9,15 @@
- Søg efter en eksakt streng (deaktiverer regulære udtryk): - 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: - 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: - 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: - Print 3 linjer af kontekst omkring, før eller efter hvert match:
@ -25,12 +25,12 @@
- Print, filnavn og linjenummer for hvert match, med farveoutput: - 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: - 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: - 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}}"`

View File

@ -10,11 +10,11 @@
- Suche nach einem exakten Ausdruck: - 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: - 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: - Zeige 3 Zeilen Kontext um [C], vor [B] oder nach [A] jedem Ergebnis:

View File

@ -9,15 +9,15 @@
- Busca una cadena exacta (desactiva las expresiones regulares): - 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: - 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: - 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: - Imprime 3 líneas de contexto alrededor, antes o después de cada coincidencia:
@ -25,12 +25,12 @@
- Imprime el nombre del archivo y el número de línea de cada coincidencia con salida en color: - 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: - 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: - 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}}"`

View File

@ -9,15 +9,15 @@
- جستجو یک عبارت خاص (معادل مقایسه رشته ای) : - جستجو یک عبارت خاص (معادل مقایسه رشته ای) :
`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 خط از قبل و بعد محل انطباق: - چاپ 3 خط از قبل و بعد محل انطباق:
@ -25,12 +25,12 @@
- چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی : - چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی :
`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) رو برای الگوهایی که منطبق نیستند جستجو میکند : - ورودی استاندارد (stdin) رو برای الگوهایی که منطبق نیستند جستجو میکند :
`cat {{path/to/file}} | grep --invert-match "{{search_pattern}}"` `cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"`

View File

@ -10,15 +10,15 @@
- Recherche en ignorant la casse : - 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 : - 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 `|`) : - 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 : - Affiche 3 lignes de [C]ontexte, avant ([B]efore), ou [A]près chaque concordance :
@ -26,7 +26,7 @@
- Affiche le nom du fichier avec la ligne correspondante pour chaque concordance : - 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 : - Utilise l'entrée standard au lieu d'un fichier :

View File

@ -9,15 +9,15 @@
- 정규표현식을 사용하지 않고 정확히 일치하는 문자열 검색: - 정규표현식을 사용하지 않고 정확히 일치하는 문자열 검색:
`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줄을 출력: - 일치하는 문자열 주변, 이전 혹은 이후의 3줄을 출력:
@ -25,12 +25,12 @@
- 각각의 일치하는 문자열의 파일 이름과 줄 번호 출력: - 각각의 일치하는 문자열의 파일 이름과 줄 번호 출력:
`grep --with-filename --line-number --color=always "{{검색_패턴}}" {{파일/의/경로}}` `grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{검색_패턴}}" {{파일/의/경로}}`
- 패턴과 일치하는 줄을 검색하고, 일치하는 문자만 출력: - 패턴과 일치하는 줄을 검색하고, 일치하는 문자만 출력:
`grep --only-matching "{{검색_패턴}}" {{파일/의/경로}}` `grep {{-o|--only-matching}} "{{검색_패턴}}" {{파일/의/경로}}`
- 패턴과 일치하지 않는 라인에 대한 `stdin` 검색: - 패턴과 일치하지 않는 라인에 대한 `stdin` 검색:
`cat {{파일/의/경로}} | grep --invert-match "{{검색_패턴}}"` `cat {{파일/의/경로}} | grep {{-v|--invert-match}} "{{검색_패턴}}"`

View File

@ -9,15 +9,15 @@
- Pesquisa por uma string exata (desabilita expressões regulares): - 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: - 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: - 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: - Imprime 3 linhas de contexto em volta, antes ou depois de cada correspondência:
@ -25,12 +25,12 @@
- Imprime o nome do arquivo e o número da linha para cada correspondência: - 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: - 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: - 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}}"`

View File

@ -9,15 +9,15 @@
- Искать по заданной подстроке (регулярные выражения отключены): - Искать по заданной подстроке (регулярные выражения отключены):
`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 строки содержимого, до или после каждого совпадения: - Вывести 3 строки содержимого, до или после каждого совпадения:
@ -25,12 +25,12 @@
- Вывести имя файла и номер строки для каждого совпадения: - Вывести имя файла и номер строки для каждого совпадения:
`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}} "{{шаблон_поиска}}"`

View File

@ -9,15 +9,15 @@
- தேடுகுறித்தொடரல்லா உருச்சரத்திற்குத் தேடு: - தேடுகுறித்தொடரல்லா உருச்சரத்திற்குத் தேடு:
`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 வரிகளைக் காட்டு: - ஒவ்வொருப் பொருத்தத்திற்கும் சூழ்ந்த, முந்தைய அல்லது பிந்தைய 3 வரிகளைக் காட்டு:
@ -25,12 +25,12 @@
- வண்ண வெளியீட்டில் ஒவ்வொரு பொருத்தத்திற்கும் கோப்பு பெயர் மற்றும் வரி எண்ணை அச்சிடவும்: - வண்ண வெளியீட்டில் ஒவ்வொரு பொருத்தத்திற்கும் கோப்பு பெயர் மற்றும் வரி எண்ணை அச்சிடவும்:
`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}} "{{தேடுதொடர்}}"`

View File

@ -9,15 +9,15 @@
- Tam bir dize ara (düzenli ifadeleri devre dışı bırakır): - 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: - 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: - 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: - Her eşleşmenin etrafında, öncesinde veya sonrasında 3 satır içerik yazdır:
@ -25,12 +25,12 @@
- Renkli çıktı ile her eşleşme için dosya adını ve satır numarasını yazdır: - 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: - 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: - 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}}"`

View File

@ -9,15 +9,15 @@
- 在文件中精确地查找字符串(禁用正则表达式): - 在文件中精确地查找字符串(禁用正则表达式):
`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 行上下文: - 在每个匹配前后、之前或之后打印 3 行上下文:
@ -25,12 +25,12 @@
- 以带有颜色的方式,打印每个匹配的文件名和行号: - 以带有颜色的方式,打印每个匹配的文件名和行号:
`grep --with-filename --line-number --color=always "{{模式字符串}}" {{路径/到/文件}}` `grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{模式字符串}}" {{路径/到/文件}}`
- 只打印文件中与模式匹配的行: - 只打印文件中与模式匹配的行:
`grep --only-matching "{{模式字符串}}" {{路径/到/文件}}` `grep {{-o|--only-matching}} "{{模式字符串}}" {{路径/到/文件}}`
- 从 `stdin`(标准输入)中查找与模式不匹配的行: - 从 `stdin`(标准输入)中查找与模式不匹配的行:
`cat {{路径/到/文件}} | grep --invert-match "{{模式字符串}}"` `cat {{路径/到/文件}} | grep {{-v|--invert-match}} "{{模式字符串}}"`