Objective: To familiarize with the grep and sed utility, to filter files. Create the file 'databook' Steve Blenheim 238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300 Betty Boop 245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23/14500 Igor Chevsky 385-375-8395:3567 Populus Place, Caldwell, NJ 23875:6/18/68:23400 Norma Corder 397-857-2735:74 Pine Street, Dearborn, MI 23874:3/28/45:245700 Jon DeLoach 408-253-3122:123 Park St., San Jose, ca 04086:7/25/53:85100 Karen Evich 284-758-2857:23 Edgecliff Place, Lincoln, NB 92743:7/25/53:85100 Fred Farbarkle 674-843-1385:20 Parak Lane, DeLuth, MN 23850:4/12/23:780700 Lori Gortz 327-832-5728:3465 Mirlo Street, Peabody, MA 34765:10/2/65:35200 Bace Gutierrez 834-365-1284:454 Easy Street, Decatur, IL 75732:2/28/53:123500 Grep 1. Print all lines containing the string San 2. Print all lines either CA or ca 3. Print all lines where the person's first name starts with B 4. Print all lines ending in 700. 5. Print all lines that don't contain 834 6. Print all lines where the phone number is in the 408 area code. 7. Print all lines containing an uppercase letter, followed by four lowercase letters. 8. Print lines containing Lincoln or lincoln (grep is insensitive to case)
Objective: To familiarize with the grep and sed utility, to filter files. Create the file 'databook' Steve Blenheim 238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300 Betty Boop 245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23/14500 Igor Chevsky 385-375-8395:3567 Populus Place, Caldwell, NJ 23875:6/18/68:23400 Norma Corder 397-857-2735:74 Pine Street, Dearborn, MI 23874:3/28/45:245700 Jon DeLoach 408-253-3122:123 Park St., San Jose, ca 04086:7/25/53:85100 Karen Evich 284-758-2857:23 Edgecliff Place, Lincoln, NB 92743:7/25/53:85100 Fred Farbarkle 674-843-1385:20 Parak Lane, DeLuth, MN 23850:4/12/23:780700 Lori Gortz 327-832-5728:3465 Mirlo Street, Peabody, MA 34765:10/2/65:35200 Bace Gutierrez 834-365-1284:454 Easy Street, Decatur, IL 75732:2/28/53:123500 Grep 1. Print all lines containing the string San 2. Print all lines either CA or ca 3. Print all lines where the person's first name starts with B 4. Print all lines ending in 700. 5. Print all lines that don't contain 834 6. Print all lines where the phone number is in the 408 area code. 7. Print all lines containing an uppercase letter, followed by four lowercase letters. 8. Print lines containing Lincoln or lincoln (grep is insensitive to case)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
use Ubuntu please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education