2012年8月21日 - How to check if a directory exists in a shell script if [ -d "$DIRECTORY" ]; then # Control ...
stackoverflow.com