Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

find line in text file, add to another text file (See related posts)

// Batch - search .txt / .csv / etc using argument, return matches to .txt / .csv / etc file
// skips the ---------- foo.csv returned by find alone
find /i "%1" foo.csv | find /i "%1" >> bar.txt

You need to create an account or log in to post comments to this site.


Click here to browse all 5137 code snippets

Related Posts