Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago