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-08-12 03:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Using sed in DOS under Windows XP: how do I use this command across multiple lines? View 849 Replies 1
Original Poster Posted 2010-09-05 22:40 ·  中国 广东 深圳 电信
新手上路
Credits 7
Posts 4
Joined 2010-09-03 15:30
15-year member
UID 173529
Gender Female
Status Offline
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?
Floor 2 Posted 2010-09-06 09:39 ·  柬埔寨
初级用户
★★
Credits 99
Posts 53
Joined 2006-08-18 18:44
19-year member
UID 60809
Status Offline
Forum Jump: