root@ubuntu:/duoceshi# grep "requestDate" *.log|grep -v "error" *.log requestDate requestDate requestDate hello root@ubuntu:/duoceshi# grep "requestDate" *.log|grep -v "error" *.log|wc -l 4 root@ubuntu:/duoceshi# grep "requestDate" *.log|grep -v "error" *.log|wc -l 4 root@ubuntu:/duoceshi# root@ubuntu:/duoceshi# root@ubuntu:/duoceshi# ll total 17044 drwxr-xr-x 3 root root 4096 Sep 26 01:00 ./ drwxr-xr-x 25 root root 4096 Sep 23 20:18 ../ drwxr-xr-x 17 xiaoshu xiaoshu 4096 Sep 23 20:19 Python-2.7.16/ -rw-r--r-- 1 root root 17431748 Mar 2 2019 Python-2.7.16.tgz -rw-r--r-- 1 root root 111 Sep 26 00:59 request.log root@ubuntu:/duoceshi# root@ubuntu:/duoceshi# cat request.log requestDate hello error requestDate requestDate requestDate requestDaterequestDateerror errorrequestDate hello