摘要:
#!/bin/sh myFile="/var /log/httpd/access.log" if [ ! -e "$myFile" ]; then touch "$myFile" fi -e和-f的区别是,-f代表常规文件(regular file),-e代表所有任何类型文件参考如下:-e file 阅读全文
摘要:
!# /bin/bash 阅读全文