grep -C3 myfile # matches in a binary file will not be shown grep -a -C3 myfile # will attempt to show line context in the binary file