我想知道如何解析如下所示的解析:
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
And many other lines with text that I do not need
* * * * * * *
Autolisp - Dialect of
我正在尝试从nginx日志文件中解析以下格式:
10.0.0.1 [02/Oct/2012:10:21:46 +0000] GET /api/123/test.json?stop=2012-09-29 502 0
我的python脚本:
#!/usr/bin/env python
f = file('slow-queries.txt', 'r')
# iterate over the lines in the file
for line in f:
# split the line into a list of column value