偶然发现sed "1i \t helloworld" -i sed.txt 执行结果并未在行首出现tab制表符而是t字符。
解决办法是sed "1i \\t helloworld" -i sed.txt
偶然发现sed "1i \t helloworld" -i sed.txt 执行结果并未在行首出现tab制表符而是t字符。
解决办法是sed "1i \\t helloworld" -i sed.txt
本文标题:sed在行首插入tab制表符
本文链接:https://www.haomeiwen.com/subject/oujmzltx.html
网友评论