Question: 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.

  1. Using sentences.txt
    1. Find all sentences that have words where there are two vowels in a row.
    2. Find all sentences that contain punctuation marks other than periods.
    3. Find all sentences that contain punctuation marks, including periods, that are not at the end of the sentence.
    4. Find all sentences that contain at least three words.
    5. Find all sentences that contain exactly four words.
    6. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!