Question: This will require Linux and regular expressions to complete. Using the text from sentences.txt below, come up with an egrep command that finds the lines
This will require Linux and regular expressions to complete. Using the text from sentences.txt below, come up with an egrep command that finds the lines requested.
- Using sentences.txt
- Find all sentences that have words where there are two vowels in a row.
- Find all sentences that contain punctuation marks other than periods.
- Find all sentences that contain punctuation marks, including periods, that are not at the end of the sentence.
- Find all sentences that contain at least three words.
- Find all sentences that contain exactly four words.
- Find all sentences that contain words in which the letters (upper or lower case) a, b, c, and d appear in that order somewhere in the words (not necessarily consecutively). This should, for instance, find a bat can die.
sentences.txt:
Anything goes here.
Or not
When, why or how.
A bat can die
The dog never does.
Yikes! he proclaimed
A big can of doo doo is gone.
The zebra never yells at x-rays well unless it is proscribed.
Once upon a time.
Farther. Back down the road!
Yes, a time once did exist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
