Page 1 of 1

findstr

Posted: 20 Sep 2009 02:31
by alcool9999
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

Posted: 22 Sep 2009 10:42
by avery_larry
I doubt that %search% is "artic monkeys" from the output you get.

check out /l and /c for findstr.