[[ `cat a.log |wc -l` -eq 0 ]] && echo "file is empty" 转载于:https://www.cnblogs.com/qmfsun/p/6641354.html