tmpFilename = “buildDefTemp.txt”
if [ -f $tmpFilename ]; then
rm -f $tmpFilename
fi
if [ -f $buildDefinitionFile ]; then
rm -f $buildDefinitionFile
fi
答案 0 :(得分:1)
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html
[ -f FILE ] True if FILE exists and is a regular file.