Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Volgende revisie | Vorige revisie | ||
|
li_cli_grep [2014/04/02 16:04] admpvi aangemaakt |
li_cli_grep [2019/07/24 18:14] (huidige) |
||
|---|---|---|---|
| Regel 1: | Regel 1: | ||
| ==== Grep options ==== | ==== Grep options ==== | ||
| + | |||
| + | Zie ook **sort** options : | ||
| + | |||
| + | [pvi@bl08204 ~]$ **sort vs00153-outside.csv | uniq -c | sort -nr** | ||
| + | 182 73.149.77.1;dmz;151.236.132.36;443 | ||
| + | 181 75.186.76.212;dmz;151.236.132.36;443 | ||
| + | 181 72.193.181.10;dmz;151.236.132.36;443 | ||
| + | |||
| + | **zgrep** | ||
| + | |||
| + | zgrep 193.172.213. ./fws*.gz | grep -v -f /home/pvi/exclude_ip_dns-pub.txt | grep permitted | ||
| + | |||
| ==OR== | ==OR== | ||
| 1. Grep OR Using \| | 1. Grep OR Using \| | ||
| Regel 28: | Regel 40: | ||
| ==Exacte woord match en woord count== | ==Exacte woord match en woord count== | ||
| grep -o -w [Vv]ader ./liefdesbrief.txt | wc -w | grep -o -w [Vv]ader ./liefdesbrief.txt | wc -w | ||
| + | | ||
| + | ==Show only filenames (-l) containing pattern and exclude directory from recursive (-R --exclude-dir=) search == | ||
| + | grep -l -R --exclude-dir=./httpdocs/wp-content/uploads/quarantine 'ynbhxxvtmh' ./ | ||