bash - Check occurrance of word after a particular number of lines -


how check if line starts "warning: ", ignoring first 15 lines?

to provide context, want use in bash if condition error processing based on log. way system setup, gives known warning comes within first 15 lines, need ignore.

tail -n +16 /var/log/syslog | grep '^warning' 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -