#!/bin/bash
#if和'['中间应该有个空格,否则编译不成功,
#if判断语句的"[ ]"两边紧贴中括号应该有空格,否则编译不成功
if [ -f"t.txt" ];then
echo "yes"
else
echo "no"
fi
#!/bin/bash
#if和'['中间应该有个空格,否则编译不成功,
#if判断语句的"[ ]"两边紧贴中括号应该有空格,否则编译不成功
if [ -f"t.txt" ];then
echo "yes"
else
echo "no"
fi