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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -