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-09 09:29
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] findstr: find lines that start with [ and end with ] View 1,979 Replies 17
Floor 16 Posted 2008-08-02 13:18 ·  中国 北京 海淀区 联通
银牌会员
★★★
Credits 2,098
Posts 566
Joined 2007-09-11 07:27
18-year member
UID 97070
Gender Male
Status Offline
Originally posted by FQ at 2008-8-2 08:29 AM:
Sigh, the key point is that it does display it

Dizzy... when I tested findstr ^$, aaa happened to have an extra space after it, so it wasn't displayed.

Today I came up with this one, it seems to work:
findstr /b 
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
joyoustar +1 2008-08-02 16:59
Floor 17 Posted 2008-08-02 14:31 ·  中国 四川 德阳 电信
初级用户
Credits 96
Posts 45
Joined 2007-03-20 06:24
19-year member
UID 82322
Gender Male
Status Offline
Originally posted by s11ss at 2008-8-2 01:18 PM:

Dizzy... when I tested findstr ^$, aaa happened to have an extra space after it, so it wasn't displayed.

Today I came up with this one, it seems to work:
findstr /b 

This one of yours works, thanks. But that original findstr ^$ had a problem in itself; it wasn't because aaa had an extra space after it.
Floor 18 Posted 2008-08-02 15:53 ·  中国 北京 海淀区 联通
银牌会员
★★★
Credits 2,098
Posts 566
Joined 2007-09-11 07:27
18-year member
UID 97070
Gender Male
Status Offline
Originally posted by joyoustar at 2008-8-2 02:31 PM:

But that original findstr ^$ had a problem in itself; it wasn't because aaa had an extra space after it.

What I meant was exactly that the original findstr ^$ itself had a problem...
Forum Jump: