Yeh I googled a bit and find doesn't support regex.
But what about
Code: Select all
type file.txt | find /v ""
Yeh I googled a bit and find doesn't support regex.
Code: Select all
type file.txt | find /v ""
Code: Select all
c:\test batch scripts\errorlevel demo>echo "a b c /" | findstr /r "//"
FINDSTR: // ignored
FINDSTR: Bad command line
The process tried to write to a nonexistent pipe.
Code: Select all
a b c /
/V Print only lines that do NOT contain a match.Squashman wrote:Read the help file. It should be evident what the /V switch does
Code: Select all
@echo off
for /f "tokens=1,3 delims=," %%m in (weather.txt) do (echo %%m %%t)