Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 3 : Due date: April 9 , 1 1 : 5 9 PM Create Assigument 3 directory and perform all the following steps in
Assignment : Due date: April : PM Create Assigument directory and perform all the following steps in it Step : Create the following files Employeetxt and Employeetxt using comma as delimiter : Join the above two files using join command and append the result in Emptxt Then cut the second and third column of Emptxt using cut command and store the result in emptxt file. Print the Emptxt using pr command. Step : Sort the Employeetxt based on the second column of the file and store the result in empsort.txt file. Paste the Employeetxt and Employeetxt using paste command and redirect it to Emptxt file. Step : Create a file Contact.txt having following content name Mark address avenue point, Toronto. PIN XCDC Use sed and replace the value after the 'name' to John; and the value after the 'address' as point avenue, circle point, Toronto. Redirect this output in Contacttxt file. Step : Create a file data.txt having contents: Linux is a family of opensource 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 ASSIGNtxt and emaildgradrop it to yourself. Create a file that contains ALL commands used to produce this assignment called assigntxt 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started