Bash Exercise 3
 

Assignment

For this assignment, create a script that will accept a working directory as the one argument. The script must:
  • Create the directory if it does not exist
  • Create an output file called output.txt in the working directory
  • tar the output file into a file called output.tar
  • gzip the output.tar file
  • Move the output.tar.gz file into the directory the script was executed.