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? -

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

ajax - PHP/JSON Login script (Twitter style) not setting sessions -