UNIX (Mac linux)
Give regular expressions (such that could be used with grep and egrep) for each of the following:
- All lines beginning with the phrase 'Unix is ' (both words together)
- All lines that end in either 'a', 'b', or 'c'
- All lines that contain the word 'result' followed by any three numbers
- All lines that contain either 0 or 1 instances of the character 'x', but no more
- All lines that contain a word with 0 or more of the letter 'a', followed by 1 or
- more of the letter 'b', followed by 0 or 1 letter 'c'