Question
This will require Linux and regular expressions to complete. Using the text from names.txt below, come up with an egrep command that finds the lines
This will require Linux and regular expressions to complete. Using the text from names.txt below, come up with an egrep command that finds the lines requested.
- Using names.txt
- Find all entries of people who live in cities whose names are multiple words.
- 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.
- Find all entries of people who have middle initials.
- Find all entries of people whose zip code has 22 in it. NOTE: this should not include Mike Keneally whose street address includes 22.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started