半点优化网 http://www.bdxc.net/
当前位置首页 > 免费seo工具> 正文

如何批量提取txt文本中带有某个关键字的指定行 并且提取后保存到新的txt文本中

2022-04-27 00:38:47 暂无评论 176 免费seo工具 提取   文本   批量

假设待处理文件是myfile.txt, 只要在DOS提示符下运行:
findstr Serial myfile.txt > Serial.txt
findstr packets input myfile.txt > packets_input.txt
findstr packets output myfile.txt > packet_output.txt
或者把以上三行保存为f.bat点击运行即可.

猜你喜欢