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
Post a Comment