mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 02:35:32 +02:00
grep: update translations (#17145)
This commit is contained in:
parent
fb512bc2c6
commit
05b8083762
17 changed files with 62 additions and 62 deletions
|
@ -13,19 +13,19 @@
|
|||
|
||||
- البحث عن نمط في جميع الملفات داخل دليل بشكل متكرر، مع عرض أرقام الأسطر المطابقة، وتجاهل الملفات الثنائية:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
|
||||
- استخدام التعابير النمطية الموسعة (يدعم `?`, `+`, `{}`, `()`, و `|`)، في وضع عدم التمييز بين الأحرف الكبيرة والصغيرة:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- طباعة 3 أسطر من السياق حول، قبل أو بعد كل تطابق:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- طباعة اسم الملف ورقم السطر لكل تطابق مع تمييز بالألوان:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- البحث عن الأسطر المطابقة لنمط معين، مع طباعة النص المطابق فقط:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 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 {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{søgemønster}}" {{sti/til/mappe}}`
|
||||
`grep {{[-rnI|--recursive --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 {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{søgemønster}}" {{sti/til/fil}}`
|
||||
`grep {{[-Ei|--extended-regexp --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}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{søgemønster}}" {{sti/til/fil}}`
|
||||
|
||||
- Print, filnavn og linjenummer for hvert match, med farveoutput:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{søgemønster}}" {{sti/til/fil}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{søgemønster}}" {{sti/til/fil}}`
|
||||
|
||||
- Søg efter linjer som matcher et mønster. Print kun den matchende tekst:
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
- Benutze erweiterte reguläre Ausdrücke (unterstützt `?`, `+`, `{}`, `()` und `|`) ohne Beachtung der Groß-, Kleinschreibung:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{ausdruck}}" {{pfad/zu/datei}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{ausdruck}}" {{pfad/zu/datei}}`
|
||||
|
||||
- Zeige 3 Zeilen Kontext um [C], vor [B] oder nach [A] jedem Ergebnis:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{ausdruck}}" {{pfad/zu/datei}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{ausdruck}}" {{pfad/zu/datei}}`
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Busca un patrón en todos los archivos de forma recursiva en un directorio, mostrando los números de línea de las coincidencias e ignorando los archivos binarios:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{patrón_de_búsqueda}}" {{ruta/al/directorio}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{patrón_de_búsqueda}}" {{ruta/al/directorio}}`
|
||||
|
||||
- Utiliza expresiones regulares extendidas (los metacaracteres `?`, `+`, `{}`, `()` y `|` no requieren de una barra inversa), sin distinguir entre mayúsculas y minúsculas:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime 3 líneas alrededor, antes o después de cada coincidencia:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
|
||||
|
||||
- Imprime con colores el nombre del archivo y el número de línea de cada coincidencia:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{patrón_de_búsqueda}}" {{ruta/al/archivo}}`
|
||||
`grep {{[-Hn|--with-filename --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:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- جستجو بازگشتی یک الگو در تمامی فایل های یک پوشه، نمایش تمامی خطوط منطبق، فایل های باینری را رد میکند:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
|
||||
- استفاده از عبارات با قاعده توسعه یافته (با پشتیبانی از `?`، `+`، `{}`، `()`، و `|`)، در حالت حساس به بزرگی کوچکی کاراکتر ها :
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- چاپ 3 خط از قبل و بعد محل انطباق:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی :
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- جستجوی خطوط منطبق، چاپ متن منطبق :
|
||||
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
|
||||
- Utilise des expressions régulières étendues (supporte `?`, `+`, `{}`, `()` et `|`) :
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} {{expression_régulière}} {{chemin/vers/fichier}}`
|
||||
`grep {{[-Ei|--extended-regexp --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}}`
|
||||
`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 {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{chaîne_recherchée}}" {{chemin/vers/fichier}}`
|
||||
|
||||
- Utilise l'entrée standard au lieu d'un fichier :
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Cari seluruh berkas selain berkas format biner di dalam suatu direktori secara rekursif (termasuk berkas-berkas di dalam subdirektori) dengan menunjukkan nomor barisan di mana pola tersebut ditemukan:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{pola_pencarian}}" {{jalan/menuju/direktori}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{pola_pencarian}}" {{jalan/menuju/direktori}}`
|
||||
|
||||
- Gunakan sintaks ekspresi reguler tingkat lanjut (mendukung `?`, `+`, `{}`, `()`, dan `|`), dalam mode case-insensitive (tanpa menghiraukan perbedaan antara huruf kapital dan kecil):
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
|
||||
- Cetak 3 baris konteks isi berkas pada sekitar, sebelum, atau sesudah setiap hasil pencarian:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
|
||||
- Cetak nama berkas dan nomor baris di mana pola tersebut ditemukan dalam format teks berwarna:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
|
||||
|
||||
- Cari untuk barisan teks yang memenuhi kriteria pada pola pencarian, dan hanya cetak bagian teks yang memenuhi pola:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- ディレクトリ内の全てのファイルを再帰的にパターン検索し、マッチしたファイルの行番号を表示する:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{検索パターン}}" {{path/to/directory}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{検索パターン}}" {{path/to/directory}}`
|
||||
|
||||
- 拡張正規表現 (`?`, `+`, `{}`, `()`, `|` をサポート)を大文字小文字を区別しないモードで使用する:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{検索パターン}}" {{path/to/file}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{検索パターン}}" {{path/to/file}}`
|
||||
|
||||
- 各マッチの前後3行のコンテキストを表示する:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{検索パターン}}" {{path/to/file}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{検索パターン}}" {{path/to/file}}`
|
||||
|
||||
- 各マッチのファイル名と行番号をカラー出力する:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{検索パターン}}" {{path/to/file}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{検索パターン}}" {{path/to/file}}`
|
||||
|
||||
- パターンにマッチする行を検索し、マッチしたテキストのみを表示する:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 재귀적으로 디렉토리 안의 바이너리 파일을 제외한 모든 파일 안에서 패턴을 검색하고, 일치하는 줄의 번호를 보여줌:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{검색_패턴}}" {{디렉토리/의/경로}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{검색_패턴}}" {{디렉토리/의/경로}}`
|
||||
|
||||
- 대소문자를 구분하지 않는 모드에서 확장된 정규표현식 사용 (`?`, `+`, `{}`, `()`, 그리고 `|` 를 지원):
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
|
||||
- 일치하는 문자열 주변, 이전 혹은 이후의 3줄을 출력:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
|
||||
- 각각의 일치하는 문자열의 파일 이름과 줄 번호 출력:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{검색_패턴}}" {{파일/의/경로}}`
|
||||
|
||||
- 패턴과 일치하는 줄을 검색하고, 일치하는 문자만 출력:
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
- Print 3 regels context rondom, voor of na elke overeenkomst:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{zoekpatroon}}" {{pad/naar/bestand}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{zoekpatroon}}" {{pad/naar/bestand}}`
|
||||
|
||||
- Print bestandsnaam en regelnummers voor elke overeenkomst met kleuruitvoer:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 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 {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{padrão_pesquisado}}" {{caminho/para/diretório}}`
|
||||
`grep {{[-rnI|--recursive --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 {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
|
||||
`grep {{[-Ei|--extended-regexp --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}}`
|
||||
`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 {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{padrão_pesquisado}}" {{caminho/para/arquivo}}`
|
||||
|
||||
- Pesquisa por linhas que correspondem a um padrão, imprimindo apenas o texto correspondido:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Искать по шаблону во всех файлах в директории рекурсивно, показывая номера строк, там где подстрока была найдена, исключая бинарные(двоичные) файлы:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{шаблон_поиска}}" {{путь/к/директории}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{шаблон_поиска}}" {{путь/к/директории}}`
|
||||
|
||||
- Искать, используя расширенные регулярные выражения (поддержка `?`, `+`, `{}`, `()`, и `|`), без учета регистра:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
|
||||
- Вывести 3 строки содержимого, до или после каждого совпадения:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
|
||||
- Вывести имя файла и номер строки для каждого совпадения:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{шаблон_поиска}}" {{путь/к/файлу}}`
|
||||
|
||||
- Искать строки, где есть совпадение по шаблону поиска, вывод только совпадающей части текста:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- அடைவிலும் சேய் அடைவுகளிலுமுள்ள இருமக் கோப்பல்லா அனைத்துக் கோப்புகளையும் தேடு; பொருத்தங்களின் வரி எண்ணைக் காட்டு:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{தேடுதொடர்}}" {{அடைவிற்குப்/பாதை}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{தேடுதொடர்}}" {{அடைவிற்குப்/பாதை}}`
|
||||
|
||||
- எழுத்துயர்நிலை கருதாது விரிவுபட்ட தேடுகுறித்தொடர்களுடன் (`?`, `+`, `{}`, `|` ஆகியவற்றைப் பயன்படுத்தலாம்) தேடு:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
|
||||
- ஒவ்வொருப் பொருத்தத்திற்கும் சூழ்ந்த, முந்தைய அல்லது பிந்தைய 3 வரிகளைக் காட்டு:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
|
||||
- வண்ண வெளியீட்டில் ஒவ்வொரு பொருத்தத்திற்கும் கோப்பு பெயர் மற்றும் வரி எண்ணை அச்சிடவும்:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{தேடுதொடர்}}" {{கோப்பு/பாதை}}`
|
||||
|
||||
- தேடுதொடருக்குத் தேடு, ஆனால் பொருந்திய பகுதிகளை மட்டும் காட்டு:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 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 {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{aranan_kalıp}}" {{dosya/yolu}}`
|
||||
`grep {{[-rnI|--recursive --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 {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{aranan_kalıp}}" {{dosya/yolu}}`
|
||||
`grep {{[-Ei|--extended-regexp --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}}`
|
||||
`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 {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{aranan_kalıp}}" {{dosya/yolu}}`
|
||||
`grep {{[-Hn|--with-filename --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:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- Знайти шаблон у всіх файлах рекурсивно в каталозі, виводячи номери рядків збігів, ігноруючи бінарні файли:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{шаблон_пошуку}}" {{шлях/до/каталогу}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{шаблон_пошуку}}" {{шлях/до/каталогу}}`
|
||||
|
||||
- Використовувати розширені регулярні вирази (підтримує `?`, `+`, `{}`, `()`, та `|`), у режимі без урахування регістру:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
|
||||
- Вивести 3 рядки контексту навколо, до, або після кожного збігу:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
|
||||
- Вивести назву файлу та номер рядка для кожного збігу з кольоровим виводом:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{шаблон_пошуку}}" {{шлях/до/файлу}}`
|
||||
|
||||
- Шукати рядкі, що відповідають шаблону, виводячи лише відповідний текст:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 在指定目录下的所有文件中递归地查找模式,显示匹配的行号并忽略二进制文件:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{模式字符串}}" {{路径/到/目录}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{模式字符串}}" {{路径/到/目录}}`
|
||||
|
||||
- 使用大小写不敏感的扩展正则表达式(支持 `?`、`+`、`{}`、`()`, 和 `|`):
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{模式字符串}}" {{路径/到/文件}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{模式字符串}}" {{路径/到/文件}}`
|
||||
|
||||
- 在每个匹配前后、之前或之后打印 3 行上下文:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{模式字符串}}" {{路径/到/文件}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{模式字符串}}" {{路径/到/文件}}`
|
||||
|
||||
- 以带有颜色的方式,打印每个匹配的文件名和行号:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{模式字符串}}" {{路径/到/文件}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{模式字符串}}" {{路径/到/文件}}`
|
||||
|
||||
- 只打印文件中与模式匹配的行:
|
||||
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
|
||||
- 在目錄中遞歸搜索模式,顯示匹配行的行號並忽略二進制文件:
|
||||
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
|
||||
- 使用擴展正則表達式(支持 `?`, `+`, `{}`, `()`, 和 `|`),並啟用不區分大小寫的模式:
|
||||
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
|
||||
- 打印每次匹配的上下文、之前或之後的 3 行:
|
||||
|
||||
`grep --{{context|before-context|after-context}} 3 "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
|
||||
- 打印包含匹配結果的文件名和行號,並啟用彩色輸出:
|
||||
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{字符串}}" {{檔案/完整/路徑}}`
|
||||
|
||||
- 搜索與模式匹配的行,僅打印匹配的文本:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue