Skip to main content
2 of 2
added 71 characters in body
andreatsh
  • 2.1k
  • 1
  • 17
  • 15

If you want to get the lines with the words ERROR and Exception, try:

grep -E "ERROR.*Exception" $file
andreatsh
  • 2.1k
  • 1
  • 17
  • 15