Leave a Comment
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 |
Similar Posts
LEAVE A COMMENT
Для отправки комментария вам необходимо авторизоваться.