shell 的判断

#!/bin/sh
file=/u03
if [ "${file}" = "/u03" ]
then
echo the filename is /u03
#!/bin/sh
file=/u03
if [ "${file}" = "/u03" ]
then
echo the filename is /u03
fi

file2=/u04
if [ "${file2}" != "/u03" ]
then
echo the filename is not /u03
fi

[@more@]
请使用浏览器的分享功能分享到微信等