findstr

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
alcool9999
Posts: 4
Joined: 17 Sep 2009 09:05

findstr

#1 Post by alcool9999 » 20 Sep 2009 02:31

hi
im a little confused. im using the findstr command but something wierd is happening.

findstr /I %search% music.txt > results.txt

it works but if search contains two or more words i get a wierd output.
search contains "artic monkeys"
music.txt:match

match being the line it found.
why is it doing this and how can i stop it.
also it gives the error cannot open monkeys.
Thanks

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 22 Sep 2009 10:42

I doubt that %search% is "artic monkeys" from the output you get.

check out /l and /c for findstr.

Post Reply