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

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

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions