CSC 275 - Operating Systems Practicum
Dr. R. M. Siegfried
Assignment #9 - Using grep
Due Friday, November 11, 2022 (Section 1)
Due Monday, November 30, 2022 (Section 2)
In this assignment, you will create write the regular expression that
specifies the words describes below:
- Use grep and wc to determine how many times Edgar Allen Poe's poem
"The Raven" contains the word "raven". You can find the poem
here.
- Use grep or egrep to pick out the lines in a text file which satisfy:
- Blank lines
- Lines with at least 3 characters
- Exactly 3 letters from abc
- Of the format non-a followed by 3 to 5 a's followed by a non-a
- Lines without the punctuation
- Lines with an upper case letter
- Lines with abc or cba or bdc
[Back to the Assignment List]