- 论坛徽章:
- 0
|
回复 4# expert1
[root@test7: /tmp]#more test
2010-06-22 07:59:59,718 INFO - login, uid:2185147, IP:187.79.95.182
2010-06-22 07:59:59,874 INFO - login, uid:8255422, IP:189.74.28.153
2010-06-22 10:59:59,962 INFO - login, uid:8170001, IP:201.79.122.195
2010-06-22 08:00:01,605 INFO - login, uid:6240401, IP:187.41.104.122
2010-06-22 08:00:03,930 INFO - login, uid:8315245, IP:211.131.49.165
2010-06-22 08:00:04,015 INFO - login, uid:8170363, IP:201.74.144.29
2010-06-22 08:00:06,521 INFO - login, uid:8170001, IP:84.124.226.161
[root@test7: /tmp]#awk 'BEGIN{FS="[ ,]"}{split($2,array,":");split($8,array1,":");if(array[1]>=8 &&array1[2]%100==1){print}}' test
2010-06-22 10:59:59,962 INFO - login, uid:8170001, IP:201.79.122.195
2010-06-22 08:00:01,605 INFO - login, uid:6240401, IP:187.41.104.122
2010-06-22 08:00:06,521 INFO - login, uid:8170001, IP:84.124.226.161
你说哪种呢?我试着还凑活啊 |
|