我有一个 abc.txt 文件,它有 100 行。我想读取这 100 行中的具体内容并打印匹配的行。下面是文本文件。
2018-09-12 11:00:02.290 [main] INFO ProxyCollector : proxyDomainInfo com.nielsen.emm.parser.ProxyDomainServerInfo@105e55ab
2018-09-12 11:00:02.296 [main] INFO ProxyCollector : country code---de
2018-09-12 11:00:02.296 [main] INFO ProxyCollector : sftp archiveDir---/incoming/log_archive/DE/archive/
2018-09-12 11:06:32.802 [main] DEBUG ProxyFileProcessor : Directory /marklogic/ProxyCollection/dirs/error/de/ Created
2018-09-12 11:06:32.802 [main] INFO ProxyCollector : Raw Files Count :: 4 File Count in incoming dir :: 4 For a Country :: de
2018-09-12 11:06:32.802 [main] INFO ProxyCollector : IpAddress in the FileName: 193.34.145.31
2018-09-12 11:06:32.803 [main] INFO ProxyCollector : IpAddress in the FileName: 85.10.197.226
我们想从country code---de
末尾读取该行
Raw Files Count :: 4 File Count in incoming dir :: 4 For a Country :: de