Daily Archives: 25.09.2018
grep, zgrep, less and zless regexp examples
Grep all files with mask:
1 |
grep "regex to find" /var/log/lb-*.net/nginx/error.log |
Grep all zipped files with mask:
1 |
zgrep "regex to find" /var/remote-log/nodejs-1*.net/node/error.log.* |
Less all files with mask:
1 |
less /var/log/lb-*.net/nginx/error.log |
Grep all zipped files with mask:
1 |
zless /var/remote-log/nodejs-1*.net/node/error.log.* |
Tail all files with mask:
1 |
tail -f /var/log/lb-*.net/nginx/error.log |