Answers for "linux grep regex return match"

0

linux grep regex return match

-o, --only-matching Show only the part of a matching line that matches PATTERN.

$ egrep -o 'key \w+' file 
key word1
key word2
Posted by: Guest on October-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language