I have a txt file with several rows. Each row contains several words separated by space. I want to print the values which have pattern like amenXXXXXXX (where length of X string is different in many rows). I tried grep with -o option and some other one-liners but not able to print only the words that have the pattern like amen. Indeed I want the output like:
amen2wit
amen3grps
amen0qw
amen8dbskm.....
I will appreciate your expert suggestions.
amen2wit
amen3grps
amen0qw
amen8dbskm.....
I will appreciate your expert suggestions.
Comment