how to fetch exact string from a text file

Posted by user136104 on Stack Overflow See other posts from Stack Overflow or by user136104
Published on 2010-02-04T17:07:45Z Indexed on 2010/03/19 12:11 UTC
Read the original article Hit count: 212

Filed under:
|
|

Hi All,

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"

Plz help me in this.. it's urgent

Thanks in advance

© Stack Overflow or respective owner

Related posts about batch

Related posts about batch-file