Question: Assignment 3 : Due date: April 9 , 1 1 : 5 9 PM Create Assigument 3 directory and perform all the following steps in

Assignment 3: Due date: April 9,11:59 PM Create Assigument 3 directory and perform all the following steps in it. Step 1: Create the following files Employee1.txt and Employee2.txt using ","(comma) as delimiter : Join the above two files using join command and append the result in Emp3.txt. Then cut the second and third column of Emp3.txt using cut command and store the result in emp_2_4.txt file. Print the Emp3.txt using pr command. Step 2: Sort the Employee2.txt based on the second column of the file and store the result in emp2_sort.txt file. Paste the Employee1.txt and Employee2.txt using paste command and redirect it to Emp4.txt file. Step 3: Create a file Contact.txt having following content name Mark address 123, avenue point, Toronto. PIN X23CDC Use sed and replace the value after the 'name' to John; and the value after the 'address' as 456, point avenue, circle point, Toronto. Redirect this output in Contact2.txt file. Step 4: Create a file data.txt having contents: Linux is a family of open-source software. Linux was used for personal computers. Linux is case sensitive. Use sed to Show the lines and the number of lines that do not contain word 'Linux' in that file. Use grep to Show the lines and number of lines that contain word 'free'. Use grep to show the lines that end with '
s
'. Use grep to show all the lines having a word starting with 'co'. Use sed to append the string 'Peter is my friend' after third line of data.txt. Append all the above created files in one file ASSIGN3.txt and email/dgra-drop it to yourself. Create a file that contains ALL commands used to produce this assignment called assign4_1.txt, then email yourself this file as well. Submit both the files on slate dropkox.

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!