/ Published in: Bash
This command will tail an Apache access log, but only print lines where an HTML file was requested.
Expand |
Embed | Plain Text
tail -f access.log|grep -P "GET[^\"]*.html"
You need to login to post a comment.
noah on 11/05/07
regex Bash html commandline filter apache request log perl debugging tail one-liners
2 people have marked this snippet as a favorite
This command will tail an Apache access log, but only print lines where an HTML file was requested.
tail -f access.log|grep -P "GET[^\"]*.html"
You need to login to post a comment.