Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This will require a Linux operating system and regular expressions to complete. Using the text from sentences.txt below, come up with an egrep command that
This will require a Linux operating system 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started