Write a shell script that asks a user for the absolute path to a directory, the script should test to see if the directory exists. If it does ls -l the directory. If not tell the user that the directory is not there. Save the file as list. I'm a beginner, but I cannot figure out how to get the script to print the ls -l after it confirms that the path is a directory.
#!/bin/bash echo 'Please enter an absolute pathway' read PATH if ($PATH == -d) then echo ls -l $PATH else echo "This is not a directory" fi