一個文本文件中替換文本,而能夠安裝各種花哨的查找和替換工具,我需要找到並與從Windows Server命令行替換文本文件中的字符串2008與Windows命令行
我會怎麼做?
例子:
text.md
Hello world!
更改爲:
text.md
Hello everyone!
我在尋找類似:
for /f %%A in (text.md) do (
set "line=%%A"
if defined line (
// and here the replacement
) ELSE echo.
)
平原批量更換有限制,這是什麼文字,我們正在處理了解的 - 或者我們可以浪費我們的時間,因爲它不會工作。 – foxidrive