How to use regexp/pattern-searching under gunzipped files. For instance ummm... let's use -
/usr/share/doc/linux-image-4.8.0-1-amd64$ zcat changelog.gz | less
Now the way I use is when reading the contents via less, use the / to locate the name or whatever term I use but this doesn't work/scale well if name/term is repeated many a time.
I also tried -
/usr/share/doc/linux-image-4.8.0-1-amd64$ zcat changelog.gz | grep $search-term | less
I do get the names/search-term but without the surrounding context as of date and other things.
Is there a way to get the search-term highlighted even if it duplicated n number of times while reading the changelog.gz
An example of what I mean https://gist.github.com/shirishag75/e1238c16d2d372c4cfc3f62e25da335a
As can be seen I do get the search term/regexp but without date-time context it is and can be somewhat meaningless without knowing when the changes happened.