linux if 的格式
时间: 2023-11-24 17:08:26 浏览: 72
Linux用if判断目录是否存在实例方法
if [ condition ]
then
# do something when condition is true
else
# do something else when condition is false
fi
Note: The condition can be anything that evaluates to true or false, such as a comparison between two values or the result of a command.
阅读全文