摘要: 1.检查文件是否存在,且不为空 [ -f “input.txt” ]&&[ -s “input.txt” ]&&echo “input.txt exists and contains characters” 总结: []即判断语法,不必用if 注意[]前后必须有空格,各部分再由空格隔开,命令格式如此 阅读全文
posted @ 2019-04-05 21:05 F君君 阅读(783) 评论(0) 推荐(0) 编辑