摘要: #!/bin/sh myFile="/var /log/httpd/access.log" if [ ! -e "$myFile" ]; then touch "$myFile" fi -e和-f的区别是,-f代表常规文件(regular file),-e代表所有任何类型文件参考如下:-e file 阅读全文
posted @ 2016-06-17 15:26 le_wenzhong 阅读(366) 评论(0) 推荐(0) 编辑
摘要: !# /bin/bash 阅读全文
posted @ 2016-06-17 14:32 le_wenzhong 阅读(104) 评论(0) 推荐(0) 编辑