In this lab, you will write a simple shell script that analyzes a single path and indicates what it refers to. The single path is given to the shell script as the single argument. Then, your script analyzes the path it is given and outputs one of these messages:

Your shell script should be named what.sh. Note that what is a standard linux command on the hills system

Your script should be able to output the following

Sample Output

$ ./what.sh
need an argument
$ ./what.sh a.out
'a.out' is a file
$ ./what.sh foo
'foo' is a directory
$ ./what.sh xxx
'xxx' does not exist
    

Turning in Your Assignment

To submit your work, upload a copy of your what.sh file to Canvas. Any analysis of your script should be copied and pasted as a long-form comment in your script