-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
egrep, grep: use serial comma, add Indonesian translations (#15494)
* 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
1 parent
2d04b47
commit 1a7645c
Showing
13 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters