Findstr results output

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Senseialex19
Posts: 1
Joined: 26 Apr 2014 22:45

Findstr results output

#1 Post by Senseialex19 » 26 Apr 2014 22:51

I'm trying to sift through a large number of .csv files for several lines of data. I've used findstr to locate the line and them stitched them together which just merges all the files with the results found into one. My question is there something that will only pull the lines with the text I'm looking for into its own .csv? Something that simply finds lines containing my search result, then copies only theses lines into its own file.

Thank you

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Findstr results output

#2 Post by foxidrive » 27 Apr 2014 00:11

This will find apple and put the line in a text file.

Code: Select all

findstr "apple" >file.txt


If it doesn't help then please give examples of the data and what you want to do.

Post Reply