Created
November 7, 2015 22:23
-
-
Save FGFW/e532df341cee596645a0 to your computer and use it in GitHub Desktop.
fr将每行首五位数的该行删除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
::依山居 5:51 2015/11/8 | |
::fr将每行首五位数的该行删除 | |
::http://www.bathome.net/thread-38036-1-1.html | |
::fr是一个完整支持正则表达式查找替换的命令行工具, | |
::作者网站:http://baiy.cn/utils/fr/index.htm | |
::去掉-stdout参数则直接修改原文件 | |
fr -r:"^\d{5},.*\r?\n?" -t -stdout -trc a.txt | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment