标签:
1 #!/bin/bash 2 if [ -f filename ]; then 3 echo ‘file exist‘ 4 else 5 echo ‘file not exist‘ 6 fi
Bash判断文件是否存在
原文地址:http://www.cnblogs.com/imzye/p/5059029.html