li_cli_grep
Verschillen
Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Beide kanten vorige revisieVorige revisieVolgende revisie | Vorige revisie | ||
| li_cli_grep [2017/04/10 11:34] – pvi | li_cli_grep [Ongeldige datum] (huidige) – verwijderd - Externe bewerking (Ongeldige datum) 127.0.0.1 | ||
|---|---|---|---|
| Regel 1: | Regel 1: | ||
| - | ==== Grep options ==== | ||
| - | Zie ook **sort** options : | ||
| - | |||
| - | | ||
| - | 182 73.149.77.1; | ||
| - | 181 75.186.76.212; | ||
| - | 181 72.193.181.10; | ||
| - | |||
| - | **zgrep** | ||
| - | |||
| - | zgrep 193.172.213. ./fws*.gz | grep -v -f / | ||
| - | |||
| - | ==OR== | ||
| - | 1. Grep OR Using \| | ||
| - | grep ' | ||
| - | 2. Grep OR Using -E | ||
| - | grep -E ' | ||
| - | 3. Grep OR Using egrep | ||
| - | egrep ' | ||
| - | 4. Grep OR Using grep -e | ||
| - | grep -e pattern1 -e pattern2 filename | ||
| - | |||
| - | ==AND== | ||
| - | 5. Grep AND using -E ‘pattern1.*pattern2′\\ | ||
| - | |||
| - | There is no AND operator in grep. But, you can simulate AND using grep -E option. | ||
| - | grep -E ' | ||
| - | 6. Grep AND using Multiple grep command | ||
| - | grep -E ' | ||
| - | |||
| - | ==NOT== | ||
| - | 7. Grep NOT using grep -v | ||
| - | grep -v ' | ||
| - | 8. Grep but NOT | ||
| - | egrep ' | ||
| - | |||
| - | |||
| - | |||
| - | ==Exacte woord match en woord count== | ||
| - | grep -o -w [Vv]ader ./ | ||
| - | | ||
| - | ==Show only filenames (-l) containing pattern and exclude directory from recursive (-R --exclude-dir=) search == | ||
| - | grep -l -R --exclude-dir=./ | ||
li_cli_grep.1491816897.txt.gz · Laatst gewijzigd: 2022/05/06 21:58 (Externe bewerking)
