views:

50

answers:

2

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

A: 

Ok.. I got the solution

C:>findstr "\" small.txt small20 C:>

A: 

echo small2

Will give you the same result

alemjerus