Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. # grab 10 lines before & after the pattern
  2. # make sure escape sequences are reained so it looks pretty (that's what the -r flag is for in less)
  3. grep -B 10 -A 10 "error" file.log | less -r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement