">
This works when entered directly into the command line and gives me the count of matching lines;
Code: Select all
grep -c "\">" "filename.txt"
Code: Select all
for /f %E in ('grep -c "\">" "filename.txt"') do echo %E
Code: Select all
for /f %E in ('grep -c "\"^>" "filename.txt"') do echo %E