I'm trying to get everything on the matched line excluding the match using grep.
If I have
#define VERSION 0.1
The command should echo
I saw this question, but I only want things on the same line.
I read the man page, but I don't see anything that matches my specific usage case. Would a different command possibly be better than grep for this?