加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Windows批处理文件的文本文件中添加新行

发布时间:2020-12-13 20:19:07 所属栏目:Windows 来源:网络整理
导读:我有一个文本文件,其中有200行以上,我只想在第4行之前添加一行.我使用的是 Windows XP. 输入前的示例文本文件: header 1header 2header 3details 1details 2 输出后: header 1header 2header 3----- This is new line ----details 1details 2 我相信你在使
我有一个文本文件,其中有200行以上,我只想在第4行之前添加一行.我使用的是 Windows XP.

输入前的示例文本文件:

header 1
header 2
header 3
details 1
details 2

输出后:

header 1
header 2
header 3
<----- This is new line ---->
details 1
details 2
我相信你在使用
echo Text >> Example.txt

功能?

如果是这样,答案就是添加一个“”. (点)直接回音后没有别的东西.

例:

echo Blah
echo Blah 2
echo. #New line is added
echo Next Blah

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读