Given a file, for example:
potato: 1234 apple: 5678 potato: 5432 grape: 4567 banana: 5432 sushi: 56789
I\'d like to grep for all lines that
Or use regex assertions: grep -oP '(?<=potato: ).*' file.txt
grep -oP '(?<=potato: ).*' file.txt