中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 21:34
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » How to delete specified characters from text (there are tens of thousands of txt files)????
Printable Version  950 / 7
Floor1 tanytxxx Posted 2009-12-23 10:29
新手上路 Posts 14 Credits 16
The purple Baoyan Jiqing Shendan is the second divine pill among the seven Jidan; the first one is the red divine pill.

Li Qiang casually took out the purple divine pill and swallowed it in one gulp. He did not think much about it, only hoping he could hold on a little longer, and at best keep the Pofan Jue great restriction going until the small planet fragments were completely broken open. (Qidian Literature Website,www.qidian.com)

After swallowing the Qiji Dan, Li Qiang unexpectedly felt nothing at all. About a minute later, a purple radiance burst out from the top of his head and circled around beside it.

His divine power was finally exhausted, the Jinzun divine heart also stopped beating, and because Pofan Jue could no longer obtain replenishment of divine power, it dissipated with a bang.www.aaa.com

There are tens of thousands of txt files in the folder. What's the fastest way to delete “(Qidian Literature Website,www.qidian.com)” and “www.aaa.com” from the text?
Is software faster or is a batch file faster?? What software???
Experts, please give me some pointers, thanks...
Floor2 asnahu Posted 2009-12-23 13:35
初级用户 Posts 53 Credits 99
www.aaa.comThis website isn't a real one, right
Floor3 yishanju Posted 2009-12-23 18:01
银牌会员 Posts 1,357 Credits 1,488
Just use a command like FR or SED to find and replace it with nothing.
Floor4 tanytxxx Posted 2009-12-23 19:16
新手上路 Posts 14 Credits 16
How do you use SED? How do you delete specified characters from text and replace them with nothing?
Floor5 moniuming Posted 2009-12-25 00:43
银牌会员 Posts 574 Credits 1,335 From 广西

Click here to download fr.exe
Floor6 tanytxxx Posted 2009-12-25 01:09
新手上路 Posts 14 Credits 16
Thanks~~~~~
Floor7 pdanniel66 Posted 2009-12-25 04:26
初级用户 Posts 64 Credits 68
Bump
Floor8 moniuming Posted 2009-12-25 10:53
银牌会员 Posts 574 Credits 1,335 From 广西
The code in reply #5 has a bit of a problem: if there are two identical fields in one line (paragraph), it will go wrong (because of greedy matching). The code below is a bit better... it's recommended to first make a temporary directory and test it with a small number of files
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023