Linux Grep Regex Rückkehr Match
-o, --only-matching Show only the part of a matching line that matches PATTERN.
$ egrep -o 'key \w+' file
key word1
key word2
Easy Echidna
-o, --only-matching Show only the part of a matching line that matches PATTERN.
$ egrep -o 'key \w+' file
key word1
key word2