Relative Content

Tag Archive for linuxshellexception

Remove 2 lines before certain exception from tail -f log

There is an exception that pops up all the time in my logs, that kind of takes a lot of space because of its repetition, and I want to find a way to ignore it from the tail -f logs command. I want to ignore the exception while watching the logs with tail -f, and also 2 lines before it and 22 lines after it.