For e.g. If I have a file containing:
spam eggs ham
and I do grep <some-flag> "eggs" *
I should get the output as:
eggs ham
and not
spam eggs ham
$ echo "spam eggs ham" | grep -o 'eggs.*'
eggs ham
grep -oeggs.*If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With