|I tried to do this but it doesn't work:|
for /f %%e in (f1.txt) do (
for /f "delims=" %%a in ('type "%1" ^| findstr "[^a-zA-Z]%%e[^a-zA-Z]"') do (
set /a count +=1
echo variable %%e appears !count!
%1 is f2.txt, becouse I've read it from the standard input....I also used the regex [^a-zA-Z]%%e[^a-zA-Z] near the string I am looking for becouse there must not be any letters around %%e...however, I might have characters like <>)(& near %%e