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 names.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 names.txt below, come up with an egrep command that finds the lines requested.

  1. Using names.txt
    1. Find all entries of people who live in cities whose names are multiple words.
    2. Find all entries of people whose cities (if given) are at least 8 letters long. Make sure you do not just search for sequences of 8 letters as this could also get last names.
    3. Find all entries of people who have middle initials.
    4. Find all entries of people whose zip code has 22 in it. NOTE: this should not include Mike Keneally whose street address includes 22.
    5. Find all entries of people who have complete addresses (including street number and name, city, state and zip code).

names.txt:

Bianca K. Jones, 612 Charles Blvd, Louisville, KY 40568

Frank Zappa, 101 Hot Rats Blvd, Los Angeles, CA 90125

George Duke, Apt 6, San Diego, CA 93241

Ian I. Underwood, 61 Brown St, Chicago, IL 63112

Mike Keneally, 2242 Sluggo Dr #6, Orange County, CA 90551

Pamela C. Barnes, 12 Caster Ln, Los Angeles, CA 90221

Ruth Underwood, 16161 Mallet St, Mariemont, OH 42522

Suzie Creamcheese, Lark Towne Ave, San Obispo, CA 91100

Terry T. Bozzio, 86 Meadowland Dr, New York, NY 06386

Thana Harris, 1234 Inca Roads, KY

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

The company openly shares plans and information with employees.

Answered: 1 week ago