我有一个文本文件,我想在第一行添加一些文本。我试过这样的事情:
sed -i '1i\'"string" file
但是,这会在文本文件中插入一个新行。
text-processing
text-processing ×1