The script should offer a menu with the following options:
● To create a backup copy of a script file.
- The name of the backup copy should have backup after the name of the script and be date stamped e.g. Ass3Script_backup_10_11_2015.
- It should be saved to your home directory using the Environment Variable for your home directory.
- The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered
● To create a date stamped log file called e.g. log_file_10_11_2015 containing:
- A list of who is logged into the system,
- The disk usage and
- Your currently running processes.
- The file should be saved to an existing directory called log_dir which should be situated off your home directory
● To create a copy of a file.
- The file should be in your current directory (the name of the file to be given by the user)
- The destination directory name to be given by the user.
- The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered.
- The script should check that the destination directory exists. If this is not the case then the script should allow the user to re-enter the destination directory until a valid directory is entered.
● To move the location of a file in your current directory (the name and destination to be given by the user)
- The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered.
- The script should check that the destination directory exists. If this is not the case then the script should allow the user to re-enter the destination directory until a valid directory is entered.
● This script should loop continuously until the user chooses to quit.