Answer the question
In order to leave comments, you need to log in
How can findstr return not a whole string, but a substring that satisfies the regular expression?
Team
findstr /R ".-.-.-..-..........-..........-..........-...." temp.txt
Answer the question
In order to leave comments, you need to log in
You need to put the output of findstr into for /f and there already cut, divide into parts, etc. above each line.
Schematically like this:
for /f "tokens=*" %%a in ('findstr /R ...') do (
echo.%%a
)
for /?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question