here is me requirement.
这是我的要求。
I have one text file and I need to get exact specified string from that file
我有一个文本文件,我需要从该文件中获取确切的指定字符串
C:>type small.txt | find "small2"
small2
small22
small20
C:>type small.txt small2
small22
small20
C:>type small.txt | find "small2" small2
small22
small20
C:\
Here it is giving all the words instead of only "small2"
在这里它给出所有的单词而不是只有“small2”
2 个解决方案
#1
0
echo small2
Will give you the same result
会给你相同的结果
#2
0
Ok.. I got the solution
好的..我得到了解决方案
C:\>findstr "\<small20\>" small.txt
small20
C:\>
#1
0
echo small2
Will give you the same result
会给你相同的结果
#2
0
Ok.. I got the solution
好的..我得到了解决方案
C:\>findstr "\<small20\>" small.txt
small20
C:\>