I can use sed to return a line that contains my search for regular expressions, but is there a way to only return the regular expression itself instead of the whole line?
The above one liner will return a whole line but I would like to return the item searched. Something like 99.99.
Code:
sed -n '/[0-9][0-9]\.[0-9][0-9]/,p' file
The above one liner will return a whole line but I would like to return the item searched. Something like 99.99.