Question: Unix Stream Editor Create a directory called myseddir . Copy the following files to this directory. data1.txt data2.txt data3.txt Write a script that reads the

Unix Stream Editor

Create a directory called myseddir. Copy the following files to this directory.

data1.txt

data2.txt

data3.txt

Write a script that reads the contents of your myseddir directory and executes the following operations on any files it contains:

Transform the 1 to 4, 2 to 5, and 3 to 6.

Remove any trailing spaces at the end of a line

Remove all lines that begin with Today

Remove all blank lines

Direct all output to a file called usernameoutput

[Submit your script (username_lab5) and myoutput (usernameoutput) file via cp command to lab7.

data1.txt

This is data1 file. Today is the day for data1.

End of data1 file.

data2.txt

This is data2 file. Today is the day for data2.

Today is another line of data. End of data2 file.

data3.txt

This is data3 file. Today is the day for data3.

Today is another line of data. End of data3 file.

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!