Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Beide kanten vorige revisie Vorige revisie Volgende revisie | Vorige revisie | ||
|
li_cli_grep [2014/09/10 22:17] pvi |
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 29: | Regel 41: | ||
| grep -o -w [Vv]ader ./liefdesbrief.txt | wc -w | grep -o -w [Vv]ader ./liefdesbrief.txt | wc -w | ||
| | | ||
| - | ==Show only filenames (-l) containing pattern, Exclude directory (--e) from recursive (-R) == | + | ==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' ./ | grep -l -R --exclude-dir=./httpdocs/wp-content/uploads/quarantine 'ynbhxxvtmh' ./ | ||