gist

11 Articles

GIST – GREP

 

# Search recursive case insensitive and show line before and after
grep -iR -B 1 -A 1 "searchterm" ./

# Search recursive case insensitive but show file name instead of matching line
grep -liR "searchterm" ./