Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!