中国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 00:43
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Using sed in DOS under Windows XP: how do I use this command across multiple lines?
Printable Version  846 / 1
Floor1 toto898 Posted 2010-09-05 22:40
新手上路 Posts 4 Credits 7
For example:
sed -n '
/begin/,/end/ {
s/#.*//
s/[ ^I]*$//
/^$/ d
p
}
'


How do I enter it line by line in DOS interactive mode?
And how should it be entered in a bat file?
Floor2 asnahu Posted 2010-09-06 09:39
初级用户 Posts 53 Credits 99
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023