我有如下格式的文件:从提取文件用grep字或sed的
File : \\dvtbbnkapp115\nautilus\030db28a-f241-4054-a0e3-9bfa7e002535.dip was
processed.
Entries Found : 0
Unarchived Documents : 1
File Size : 1 K
Error : The following line could not be processed. Bad Document Type.
Error : Marketing and Contact preference change
update||7000003735||078ef1f3-db6b-46a8-bb0d-c40bb2296ab5.pdf
File : \\dvtbbnkapp115\nautilus\078ef1f3-db6b-46a8-bb0d-c40bb2296ab5.dip was
processed.
Entries Found : 0
Unarchived Documents : 1
File Size : 1 K
Error : The following line could not be processed. Bad Document Type.
Error : Declined - Bureau Data (process)||7000003723|252204|2f1d71f4-052c-49f1-95cf-9ca9b4268f0c.pdf
File : \\dvtbbnkapp115\nautilus\2f1d71f4-052c-49f1-95cf-9ca9b4268f0c.dip was
processed.
Entries Found : 0
Unarchived Documents : 1
File Size : 1 K
Error : The following line could not be processed. Bad Document Type.
Error : Unable to call - please
contact|40640510016710|7000003180||3e6a792f-c136-4a4b-a654-37f4476ccef8.pdf
我所需要的双管后,只提取PDF文件的名称,并将其写入到文件中。当谈到unix/sed/grep命令时,我是一个新手,我尝试过但没有运气?任何想法或例子我可以用来提取上述信息?
感谢
我看到列出了三个PDF文件。你想要所有三个人还是只有两个人的名字紧跟在||之后? – chrisaycock 2011-02-09 16:20:34
嗨,在这个例子中只有3个,但可能有100个像上面那样。谢谢 – Marco 2011-02-09 16:58:10