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

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!