Nigel's Notes
Tuesday, 17 December 2019
grep file contents recursively
grep -r -B 2 -A 2 "apt" *
Searches all files from here on down for the string apt, and display two lines before and after each hit. Add -i to ignore case.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment