Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the language is for linux/unix i need to search a file called datebook.txt for the following Print all lines containing the string San Print all

the language is for linux/unix

i need to search a file called datebook.txt for the following

Print all lines containing the string San

Print all lines where the persons first name starts with J.

Print all lines ending in 700

Print all lines that dont contain 834

Print all lines where birthdays are in December (assume the user does not know the details of the file format, assume no colon precedes the month)

Print all lines where the phone number is in the 408 area code (same as previous question, assume no colon precedes the area code)

Print all lines containing an uppercase letter, followed by four lowercase letters, a comma, a space, and one uppercase letter.

Print lines where the last name begins with K or k.

Print lines preceded by a line number where the salary is a six-figure number

Print lines containing Lincoln or lincoln (remember that grep is sensitive to case)

Please submit a text file with each grep command listed. Please make sure the command is exact. I should be able to copy/paste the command into a bash shell and it should produce the correct output.

Note: You can convert the datebook.txt file to Unix format using the dos2unix command.

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions