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 /
Moderator: DosItHelp
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 /
Code: Select all
Z:\>echo "a b c /" | findstr "/r" "\/"
"a b c /"
Z:\>echo a b c / | findstr /r \/
a b c /
Code: Select all
Z:\>echo "a b c /" | findstr /r ".*/"
"a b c /"
Code: Select all
echo "a b c /" | findstr /r /c:/
:: or
echo "a b c /" | findstr /r /c:"/"
Code: Select all
echo "a b c /" | findstr /r "$^ /"