echo怎样在行末尾,而不是下一行添加数据

2025-05-06 08:04:40
推荐回答(1个)
回答1:

在文件末尾添加内容可以这样 echo '内容' >> 文件 在某一行的话可以用sed命令 sed -i "na 内容" 文件 在n行之后追加内容