Write a bash script called mycopy that copies a file from one location to another. An example of running the script is given below:
mycopy hello.c examples/example1.c
The script should take the source and destination filenames as arguments.
The following conditions should also be handled by the script:
!If only the source filename argument is given (i.e. only one argument), then the script should ask the
user to enter the destination;
!If the source file does not exist on the filesystem, the script should print an error message, saying that
the file does not exist, and exit;
!If the destination file already exists, the script should ask the user whether they would like to replace
it, rename it, or exit;
!If no arguments are given, the script should print out the following usage information and exit.
Usage: mycopy source [destination]