我试过这个,但它总是返回 1。
grep "\[10/Nov/2012" /path/to/access.log | cut -d" " -f1 | sort | uniq | wc -l
nginx logging visitors
logging ×1
nginx ×1
visitors ×1