【发布时间】:2019-10-20 22:05:24
【问题描述】:
我有一个text-file,它在一行中包含一堆数据,没有任何line-breaks。它将包含类似于以下内容的数据:
{"Id":1801157,":"33611134":"E","Oct 19:":"G","Order":"117" ,"BroadcastDate":"2019-10-19"}
我想做的是在BroadcastDate 之前插入一个换行符,所以它现在看起来像这样:
{"Id":1801157,":"33611134":"E","Oct 19:":"G","Order":"117" ,"
BroadcastDate":"2019-10-19"}
我希望能够通过windows command-line 来实现。所以基本上我想找到BroadcastDate并将其替换为<line break>BroadcastDate。
【问题讨论】:
-
文件中只有1行?只有 1 个 BroadcastDate 实例?
标签: text-file line-breaks windows command-line windows cmd command-line text-files line-breaks