Playing with Linux
My online Linux notepad.
Tuesday, 26 February 2013
Search for searchpattern in file and provide 3 lines above and 3 lines below of context in the output.
grep -C3 searchpattern file # Search for searchpattern in file and provide 3 lines above and 3 lines below of context in the output.
No comments:
Post a comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a comment