Thursday, February 9, 2012

unix command grep

cat file | grep pattern -A4

-A4 print 4 line after the match line
-B4 print 4 line before the match lin
-C4 print 4 line of context.

No comments:

Post a Comment