I'm wondering how to improve my grep use when being confronted with files with very long lines. Imagine something like "packed" JavaScript files that only have 1 line. Sometimes files like that spit out results which I didn't expect and flood my console (especially when using --recursive).
I guess I would like something like --context but for words/bytes around the match. I thought I was being smart by coming up with this usage:
$ grep -rino --color ".\{0,20\}something.\{0,20\}" *
But that makes the characters around my search term part of the match.
