在没有sed、awk或bash循环的文本文件顶部插入一行

只需要使用'-'来作为“cat”的额外输入
.

0

linux命令:echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txt file.txt newfile.txt mv newfile.txt; > file.txt - cat | line" first "New echo echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txtrootopen.com
linux命令:echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txt file.txt newfile.txt mv newfile.txt; > file.txt - cat | line" first "New echo echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txtrootopen.com
rlim 2018-10-22 21:09:13
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章