Question: You will create a shell script called mod 5 . sh that performs the following action: Pass a textfile to the shell script on the
You will create a shell script called modsh that performs the following action:
Pass a textfileto the shell script on the command line as an argument to the shell scriptthis is the attached file: begunix.txt
Using the textfile begunixtxt determine the number of characters, bytes, lines and words contained in the file and print out the results. You need to pipe commands together to get this output. If you do not pipe commands together no credit will be given. This is testing your ability to use the pipe in Linux.
Next, create a tar.xzfile from the textfile. Call this new file begunix.txttar.xz
Do not hard code in the name of the file, use a variable notice the text filename is the first part of the tar.xzfilename
Finally, display the size of compressed file..
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
