偶然发现sed "1i \t helloworld" -i sed.txt 执行结果并未在行首出现tab制表符而是t字符。
解决办法是sed "1i \\t helloworld" -i sed.txt
01-04
08-18
1172
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
偶然发现sed "1i \t helloworld" -i sed.txt 执行结果并未在行首出现tab制表符而是t字符。
解决办法是sed "1i \\t helloworld" -i sed.txt