I am working on a fix for a .bat script and there is a problem with the following line:
forfiles /m *.site /c "grep -i -l \"%1\^|%2\" %CONFIG_PATH%\\@file" > files.temp
For some reason when I run this in the cmd line (subbing values into 1 and 2) it does not do a case-insensitive search. In a previous version of the file the line was different:
grep -i -l "%1\|%2" %CONFIG_PATH%/*.site > %CONFIG_PATH%\files.temp
This version works. I cannot figure out why the second one works but the first does not. Any help would be greatly appreciated.
Thank you!