简单脚本:写一个shell脚本,实现以下功能:查看在/下是否有目录a,如果没有则创建。 #!/bin/sh if [ -d $1 ]; then echo "目录$1存在!" else mkdir $1 echo "目录$1创建成功!" fi