|
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.
Details
- Try defining and using a function in this script.
Tips
- if [ -d $WRKDIR ] will check if a directory exists.
A solution
|