ssh tail output lines only with keyword -
i'm trying tail large file in ssh command prompt, need filter displays lines contain particular keyword in them.
i'm using command tail.
# tail /usr/local/apache/logs/access_log
if possible please let me know add command accomplish this.
you can pipe output of tail
, use grep
.
filter displays lines contain particular keyword in them
you do:
tail /usr/local/apache/logs/access_log | grep "keyword"
where you'd replace keyword
keyword.
Comments
Post a Comment