![]() |
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-11-10 20:56 |
47,815 topics / 349,930 posts / today 0 new / 48,291 members |
| DOS批处理 & 脚本技术(批处理室) » I want to delete the lines starting with p, c, - in the txt... |
| Printable Version 2,935 / 17 |
| Floor16 amao | Posted 2007-02-11 04:11 |
| 中级用户 Posts 152 Credits 316 | |
|
Today I'm late, and I'll make up the post about sed. (BTW: I won't post about vkill, so I'll take the opportunity to post some trivial content.)
@sed "/^/d" test.txt> result.txt The following text is quoted from redtek sed.exe tool download: http://www.cn-dos.net/forum/atta...b72b&download=1 sed article collection http://www.cn-dos.net/forum/view...1&highlight=sed |
|
| Floor17 zjghjs | Posted 2007-02-14 02:10 |
| 初级用户 Posts 19 Credits 46 | |
|
I followed what was done in floor 6 and floor 13, and I saw in the cmd window that it has been deleted, but the txt file hasn't been deleted?
|
|
| Floor18 jmz573515 | Posted 2007-02-15 08:15 |
| 银牌会员 Posts 464 Credits 1,212 | |
|
It seems that there is no output to the text...
Hehe, I don't understand either (just filling the post) |
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |