Replacing characters in a text file with a batch file

前端 未结 7 449
一个人的身影
一个人的身影 2021-01-18 08:03

Is there a way to replace some characters in a text file with a batch file?

I didn\'t find any command to do that.

7条回答
  •  既然无缘
    2021-01-18 08:51

    You have to use WIN32 SED and see the official gnu sed page for explanation. It is really powerful :

    > sed "s/WORD_FROM/WORD_TO/" file_name > changed.file.name
    

提交回复
热议问题