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.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)