China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 02:26
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » I want to delete the lines starting with p, c, - in the txt... View 2,366 Replies 17
Floor 16 Posted 2007-02-11 04:11 ·  美国 缅因州
中级用户
★★
Credits 316
Posts 152
Joined 2006-06-18 13:01
20-year member
UID 57204
Gender Male
Status Offline
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
Floor 17 Posted 2007-02-14 02:10 ·  中国 江苏 苏州 电信
初级用户
Credits 46
Posts 19
Joined 2007-02-07 01:43
19-year member
UID 78833
Gender Male
Status Offline
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?
Floor 18 Posted 2007-02-15 08:15 ·  中国 辽宁 本溪 联通
银牌会员
★★★
Credits 1,212
Posts 464
Joined 2006-12-13 21:11
19-year member
UID 73417
Gender Male
Status Offline
It seems that there is no output to the text...
Hehe, I don't understand either (just filling the post)
Forum Jump: