[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] [已解决]求助批处理依据日期提取提取特定行

本帖最后由 KLL 于 2024-6-14 01:19 编辑

求助文本中希望依据日期 提取特定行

提取 2024/03/27   与  2024/04/03 的行
谢谢

文本内容
2024/03/14 02:20,18129.25,18134.25,18125.50,18130.50,219,
2024/03/14 02:25,18131.00,18134.25,18128.25,18131.50,203,
2024/03/27 13:10,18424.25,18425.75,18415.50,18422.00,7096,
2024/03/27 13:15,18421.75,18431.50,18414.50,18430.25,6055,
2024/03/27 13:20,18430.50,18446.00,18427.00,18442.00,9846,
2024/03/27 13:25,18441.75,18455.00,18441.25,18450.00,6682,
2024/03/28 02:45,18498.50,18508.00,18497.00,18507.50,2105,
2024/03/28 02:50,18508.00,18509.50,18500.75,18503.50,1659,
2024/03/31 20:35,18591.25,18595.00,18589.75,18591.25,652,
2024/04/02 03:10,18499.50,18501.25,18486.25,18492.75,2501,
2024/04/02 03:15,18493.00,18495.25,18487.00,18490.50,1675,
2024/04/02 03:20,18490.50,18514.00,18487.50,18509.25,3807,
2024/04/03 09:50,18417.00,18419.50,18407.75,18410.50,9183,
2024/04/03 09:55,18410.75,18419.50,18409.75,18415.25,9924,
2024/04/03 10:00,18415.25,18434.50,18415.00,18432.50,16789,
2024/04/03 10:05,18432.25,18438.25,18425.75,18432.50,11837,
2024/04/05 05:55,18135.50,18143.25,18134.00,18138.25,1371,
2024/04/05 06:00,18137.75,18142.75,18135.00,18142.00,1231,
2024/04/05 06:05,18142.50,18144.00,18136.00,18139.50,1495,

回复 1# KLL
  1. findstr /bl "2024/03/27 2024/04/03" a.txt
复制代码

或者
  1. findstr /bl "2024/03/27 2024/04/03" a.txt>a.new.txt
复制代码
1

评分人数

    • KLL: 乐于助人技术 + 1

TOP

对 , 正是小弟所需

谢谢您

TOP

返回列表