linux bash shell 插入字符串到文本首行 第一行
[yeqiang@harbor tmp]$ cat a.txta[yeqiang@harbor tmp]$ sed-i '1i\inserttofirestlinemessage' a.txt[yeqiang@harbor tmp]$ cat a.txtinserttofirestlinemessagea
·
[yeqiang@harbor tmp]$ cat a.txt
a
[yeqiang@harbor tmp]$ sed -i '1i\inserttofirestlinemessage' a.txt
[yeqiang@harbor tmp]$ cat a.txt
inserttofirestlinemessage
a
更多推荐
已为社区贡献10条内容
所有评论(0)