I have a text file 'samp' that I want to grep ONLY lines that start and end with uppercase vowels.
Using "grep ^[AEIOU] samp
" works.
Using "grep [AEIOU]$ samp
" works as well.
But when trying to combine them to "grep ^[AEIOU]$ samp
" it returns nothing.
3 things:
- Yes, I have lines that start and end with uppercase vowels in samp.
- Yes, I tried every combination of quotes I could think of. Nothing still.
- Yes, I'm new to unix.
Any help would be appreciated.