Without being able to install all sorts of fancy find and replace tools, I need to find and replace strings within text files with the command line from Windows Server 2008.
How would I do that?
Example:
text.md
Hello world!
Change to:
text.md
Hello everyone!
I'm looking for something like:
for /f %%A in (text.md) do (
set "line=%%A"
if defined line (
// and here the replacement
) ELSE echo.
)