bash 文件头尾插入字符时间:2023-03-09 07:25:31 头部插入:sed -i '1i\Insert this line' file.txt 尾部插入:echo "hehe" >> tmp.txt