DOS FIND command only want the search info not file name


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by Harry Palama on November 20, 2007 at 19:58:34:


I am trying to find a specific value in a file and then redirect the finds into another file. I keep getting the file name and a blank line in the file as well. How do I get just the information from the line I was searching for.

Ex.. Find "put" test.bat >text.txt

results:

-------------test.bat------- I dont want this
put only want this
put
put



Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]