1. \cp -rf 不需要按y确认,直接拷贝
2.判断字符串是否为空,最好加上x
result=‘‘
if [ x"$result" == x"" ];then
echo "the result is ‘ ‘ "
else
echo "the result is not ‘ ‘ "
fi
2023-11-04 16:17:46
1. \cp -rf 不需要按y确认,直接拷贝
2.判断字符串是否为空,最好加上x
result=‘‘
if [ x"$result" == x"" ];then
echo "the result is ‘ ‘ "
else
echo "the result is not ‘ ‘ "
fi