2014-02-27 129 views

回答

0
if [ -d "/path/to/dir" ] 
then 
     echo "Directory /path/to/dir exists." 
else 
     echo "Error: Directory /path/to/dir does not exists." 
fi 
相关问题