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)

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter10: Data Analysis With Power Tools And Creating Macros
Section: Chapter Questions
Problem 2AYK
icon
Related questions
Question

use Ubuntu please

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)
Transcribed Image Text: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)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning