How do I search for lines in files in UNIX that start with e or y and contain exactly four characters in one line?
For the first part I tried
ls /usr/cont | grep ^[ey] I'm not sure how I am supposed to make it recognize two different letters.
For the other part I only know how to search for one exact character.
For the second part I used:
ls /usr/cont | grep ^.$
grepfor contents,findfor names (orls | grepdepending what you want to do)