我有一个大约5万行的小文件。仅当下一行中有特定单词时,才需要将一行中的数据输入到db中。例如
00:00:01 Request from 1.1.1.1 for A-record for www.website1.com
00:00:01 Sending reply to 1.1.1.1 about A-record for www.website1.com:
00:00:01 -> Answer: A-record for www.website1.com = 999.999.999.999
00:00:02 Request from 1.1.1.1 for A-record for www.website2.com
00:00:02 Plug-in "Domain Blacklist1" matched A-record for www.website2.com
00:00:03 Request from 1.1.1.1 for A-record for www.website3.com
00:00:04 Sending reply to 1.1.1.1 about A-record for www.website3.com:
00:00:01 -> Answer: A-record for www.website3.com = 888.888.888.888
我只想从第4行输入数据,因为第5行中包含“域黑名单”。
关于我可能如何处理的任何想法?
保罗