Question: This will require a Linux operating system and regular expressions to complete. You can also use https://regexr.com/ to find the appropriate regular expression to use

This will require a Linux operating system and regular expressions to complete. You can also use https://regexr.com/ to find the appropriate regular expression to use on the text. Using the text from names.txt below, come up with an egrep command in the bash terminal 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

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!