赞
踩
#!/bin/bash
FILE=/etc/rc.d/rc.sysinit
if [ ! -e $FILE ] ; the
echo "No such file."
exit 6
fi
if [ -f $FILE ]; then
echo "Common file."
elif [ -d $FILE ] ; then
echo "Directory."
else
echo "Unknown."
fi
转载于:https://blog.51cto.com/14087650/2335036
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。