For example, i have file with content
hello world
it's nice to see you
amazing night
what a wonderful day
my name is Robert
still breathing
speaking bottom soul
something wrong
I need to match those lines, in which second word has exactly two vowels. So the output should be:
it's nice to see you
my name is Robert
speaking bottom soul
How can I do this using grep?
grep -e ".*\s[aueioy]\{2\}" test.txt
. BTW, it's still wrong. – Maksym Musiienko Dec 10 '16 at 17:07gsub
on$2
(or in perl use the return value of atr
on$F[1]
). – steeldriver Dec 10 '16 at 18:34