Tue, 04 Oct 2005
grep
grep 'find this phrase' filename -A3 -i -r // -A3 means show 3 lines after the phrased searched for // -B3 is 3 lines before, -C3 is 3 lines both before & after // -i means case insensitive // -r means search recursively down into directories ls -l | grep '^d' // shows subdirectories in a directory
Posted at: 00:00 | category: /commands | Comments ()
Rustybear Blog