#!/bin/bash
touch file1
rm -f file2
if [ -f file1 ] && echo "hello" && [ -f file2 ] && echo "there"
then echo "in if"
else
echo "in else"
fi
exit 0
shell learning [and 的用法]
最新推荐文章于 2025-10-15 16:03:02 发布
#!/bin/bash
touch file1
rm -f file2
if [ -f file1 ] && echo "hello" && [ -f file2 ] && echo "there"
then echo "in if"
else
echo "in else"
fi
exit 0
1861
1万+
5599
5830

被折叠的 条评论
为什么被折叠?