Question
Unix/Linux The file raw_data has data in the format of 111-22-3333, last_name, first_name The file final will have the data in the following format first_name
Unix/Linux
The file raw_data has data in the format of
111-22-3333, last_name, first_name
The file final will have the data in the following format
first_name last_name: 111223333
There is no space in front of the first_name and one space between the first_name and last_name.
Perform the following steps:
- Use the script command to copy what you type to a file called session07_hw.
$ script session07_hw
- Use the commands grep, cut, paste, awk and sed as appropriate to modify the data in the file raw_data to look correct in a file called final. DO NOT USE ANY TEXT EDITORS TO CHANGE THE DATA.
- Do not include the header in raw_data in your final file. The header in raw_data looks like this:
id, last, first
- Type "cat final" when you are done so I can see the final format of your data.
- Exit the script command
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