Answered step by step
Verified Expert Solution
Link Copied!

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.

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

Students also viewed these Databases questions