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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -