file example:
blahblah 123.a.site.com some-junk yoyoyoyo 456.a.site.com more-junk hihohiho 123.a.site.org junk-in-the-trunk lalalala 456.a.site.org monkey-junk
I want grep to have all these domains in the middle of each line, they all have a common a.site part that I can grep with, but I canβt decide how to do this without returning the entire line
Maybe sed or regex is needed here, since just grep is not enough?
source share