Show context around matches using grep

InstructorBonnie Eisenman

Share this video with your friends

Send Tweet

By default, grep displays the file path and the line where a match is found. Learn to use the flags -A, -B, -C, and -n to get more context, and view line numbers as well as the lines surrounding a pattern match.