Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The language is Linux/Unix bash shell Please modify the follwing for a file call

ID: 3725939 • Letter: T

Question

The language is Linux/Unix bash shell

Please modify the follwing for a file called 'datebook' using sed commands

1)Change the name Jon to Jonathan

2)Delete the first three lines

3)Print lines 5 through 10

4)Delete lines containing Lane

5)Print all lines where the birthdays are in November or December

6)Append three asterisks to the end of lines starting with Fred

7)Replace the line containing Jose with JOSE HAS RETIRED.

8)Change Popeye ’s birthday to 11/14/46. Assume you don’t know Popeye ’s original birthday. Use a regular expression to search for it.

9)Delete all blank lines.

10)Write a sed script that will: a) Insert above the first line the title PERSONNEL FILE. b) Remove the salaries ending in 500 c) Print the contents of the file with the last names and first names reversed d) Append at the end of the file THE END

Explanation / Answer

let the file name be file,txt

1)

2)

3)

sed -n ‘5,10’p file.txt

4)

5) since file structure is not given so not answering this ques

6)

7)

8) since file structure is not defined so not answering this ques

9)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote