Skip to content

Commit

Permalink
egrep, grep: use serial comma, add Indonesian translations (#15494)
Browse files Browse the repository at this point in the history
* egrep, grep: use serial comma, add Indonesian translations

* grep: reverse Spanish fixes

* grep: revert fixes for Romance languages (Dutch, French, Portuguese)

* grep: revert fixes for Romance languages (German)
  • Loading branch information
reinhart1010 authored Jan 14, 2025
1 parent 2d04b47 commit 1a7645c
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pages.da/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

`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 {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{søgemønster}}" {{sti/til/fil}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.fa/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion pages.fr/common/egrep.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# egrep

> Recherche de motifs dans un texte. Supporte la version étendues des expressions regulieres (`?`, `+`, `{}`, `()`, et `|`).
> Recherche de motifs dans un texte. Supporte la version étendues des expressions regulieres (`?`, `+`, `{}`, `()` et `|`).
> Plus d'informations : <https://manned.org/egrep>.
- Recherche une chaîne de caractères précise :
Expand Down
28 changes: 28 additions & 0 deletions pages.id/common/egrep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# egrep

> Cari pola teks tertentu pada kumpulan berkas menggunakan kata pencarian ekspresi reguler (regex) tingkat lanjut (mendukung `?`, `+`, `{}`, `()`, dan `|`).
> Informasi lebih lanjut: <https://manned.org/egrep>.
- Cari suatu berkas untuk teks yang mengikuti pola pencarian tertentu:

`egrep "{{pola_pencarian}}" {{jalan/menuju/berkas}}`

- Cari lebih dari satu berkas untuk teks yang mengikuti pola pencarian tertentu:

`egrep "{{pola_pencarian}}" {{jalan/menuju/berkas1 jalan/menuju/berkas2 ...}}`

- Cari isi `stdin` untuk teks yang mengikuti pola pencarian tertentu:

`cat {{jalan/menuju/berkas}} | egrep {{pola_pencarian}}`

- Cetak nama berkas dan nomor baris di mana pola tersebut ditemukan:

`egrep --with-filename --line-number "{{pola_pencarian}}" {{jalan/menuju/berkas}}`

- 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:

`egrep --recursive --binary-files={{without-match}} "{{pola_pencarian}}" {{jalan/menuju/direktori}}`

- Cari untuk barisan teks yang tidak memenuhi kriteria pada pola pencarian:

`egrep --invert-match "{{pola_pencarian}}" {{jalan/menuju/berkas}}`
36 changes: 36 additions & 0 deletions pages.id/common/grep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# grep

> Cari pola teks tertentu pada kumpulan berkas menggunakan kata pencarian ekspresi reguler (regex).
> Informasi lebih lanjut: <https://www.gnu.org/software/grep/manual/grep.html>.
- Cari suatu berkas untuk teks yang mengikuti pola pencarian tertentu:

`grep "{{pola_pencarian}}" {{jalan/menuju/berkas}}`

- Cari berkas untuk teks string tertentu secara spesifik (dengan menghentikan pencarian berbasis ekspresi reguler):

`grep {{-F|--fixed-strings}} "{{teks_spesifik}}" {{jalan/menuju/berkas}}`

- 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}}`

- 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}}`

- 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}}`

- 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}}`

- Cari untuk barisan teks yang memenuhi kriteria pada pola pencarian, dan hanya cetak bagian teks yang memenuhi pola:

`grep {{-o|--only-matching}} "{{pola_pencarian}}" {{jalan/menuju/berkas}}`

- Cari `stdin` untuk barisan teks yang tidak memenuhi kriteria pada pola pencarian:

`cat {{jalan/menuju/berkas}} | grep {{-v|--invert-match}} "{{pola_pencarian}}"`
2 changes: 1 addition & 1 deletion pages.ko/common/egrep.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# egrep

> 확장 정규식을 사용하여 파일에서 패턴을 찾음 (`?`, `+`, `{}`, `()``|` 지원).
> 확장 정규식을 사용하여 파일에서 패턴을 찾음 (`?`, `+`, `{}`, `()`,`|` 지원).
> 더 많은 정보: <https://manned.org/egrep>.
- 파일 내에서 패턴 검색:
Expand Down
2 changes: 1 addition & 1 deletion pages.ko/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion pages.ru/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion pages.tr/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

`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 {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{aranan_kalıp}}" {{dosya/yolu}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.uk/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{шаблон_пошуку}}" {{шлях/до/каталогу}}`

- Використовувати розширені регулярні вирази (підтримує `?`, `+`, `{}`, `()` та `|`), у режимі без урахування регістру:
- Використовувати розширені регулярні вирази (підтримує `?`, `+`, `{}`, `()`, та `|`), у режимі без урахування регістру:

`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{шаблон_пошуку}}" {{шлях/до/файлу}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion pages/common/egrep.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# egrep

> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`).
> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()`, and `|`).
> More information: <https://manned.org/egrep>.
- Search for a pattern within a file:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
- Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:

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

Expand Down

0 comments on commit 1a7645c

Please sign in to comment.