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 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 dont 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started