Write a shell script that accepts a file or directory name as an argument. Have the script report if it is a regular file, a directory, or another type of file. If it is a directory, exit with a 1 exit status. If it is some other type of file, exit with a 2 exit status
-
-
Save sandygudie/919b7c825e213bb970010a566d5ef29b to your computer and use it in GitHub Desktop.
Bash Scripting
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment