I have a file containing say the below strings for example.
File:
She sells sea shells on the seashore.
I would like to use grep (or any other grep like linux cmd tool) to be able to print whole words that match a particular substring/regular expression. In this case, I would like to print all word occurences in the file that match words starting with se in newlines. The required output is given below:
Required output:
sells
sea
seashore