Find the differences between the two files and append the


This is the previous project:
I am trying to complete this UNIX shell assignment using the following criteria:
* Boot your PC with Knoppix and set you working directory to the removable media.
* Create a directory for each week of the course called week1, week2, week3, week4, and week5 on the removable media.
* Change the working directory to week1 and create a file called "scales" that contains the days of the week (Sunday, Monday etc) with each day on a separate line without using an editor (use cat command)
* Sort this file and append the results to the same fiel, "scales".
* Append the results of the pwd command to the "scales" file.
* In the week1 directory creat the subdirectories and fils as shown:
(consider week1 to be equivalent to $HOME)
touch birds.dat
mkdir water trees
cd water
mkdir oceans seas
cd oceans
touch atl.dat
touch pac.dat
cd ../seas
touch Red.dat
touch Black.dat
cd ~/week1/trees
touch Oak.dat
touch Pine.dat

Place the output of the history command in a file named "scales".

In your week2 directory create two identical files. Name one "scales".ed1 (e.g. miller.ed1) and the other "scales".vi (e.g. miller.vi). The contents of the two files should be:
There once was a man from Nantucket,

Who carried his lunch ina bucket,

Saih he with a sigh,

I am very full As he ate a whole pie,

Using an editor available in your Konsole window that is not the vi editor edit the *.ed1 file:
Add the following line after the last line:
If I just had a donut I'd dunk it.

Remove all text on the fourth line before the word As
Correct misspelled words ina and Saih
Save the file and exit the editor

Using the vi editor on the *.vi file
Add the following line after the last line:
If I just had a donut I'd dunk it.

Remove all text on the fourth line before the word As
Correct misspelled words ina and Saih
Change the limerick so it reflects a woman instead of a man (change all occurrences of man to woman, his to her, and he to she) using search and replace feature
Save the file and exit vi
Place the word count of the two files in a file called "scales".out

Change Nantucket to Pawtucket in the *.ed1 file using the sed command
Append the last two lines of each file to the file called "scales".out without cutting and pasting (Hint: tail command can do this)

Find the differences between the two files and append the result to the file called "scales".out (Hint: diff command can do this)
Use grep to find files contaning Pawtucket and append the output to the file called "scales".out
In your week2 directory create the script in Project.3-7 and name it "scales".3-7

Project 3.7:

In this project, you use additional arithmetic operators in the ((expression)) commands. The goal of this project is to reinforce your understanding of arithmetic operations.
Log in to the Linux system as a user, and then open a Terminal emulation window.
Create a shell script named Project3-7 located in a directory supported by the File System Hierarchy Standard.
The script needs to perform the following pseudocode in the order shown:

Save the file, and then close the editor.
Execute the script, and then record the commands used.
Record or print your script.
Close your window, and then log out.

Please send all files associated as I am pretty lost and I can not follow the logic wihtout getting totally confused. I appreciate your time and efforts.

Solution Preview :

Prepared by a verified Expert
Database Management System: Find the differences between the two files and append the
Reference No:- TGS01259529

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)