You will create a shell script called mod5.sh that performs the following action:
Pass a textfile to the shell script on the command line as an argument to the shell script (this is the attached file: begunix.txt).
Using the textfile (begunix.txt) 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.xz file from the textfile. Call this new file begunix.txt.tar.xz
Do not hard code in the name of the file, use a variable (notice the text file name is the first part of the tar.xz filename).
Finally, display the size of compressed file..