头部插入:sed -i '1i\Insert this line' file.txt

尾部插入:echo "hehe"  >> tmp.txt

posted on 2013-09-22 15:30  andy071001  阅读(446)  评论(0编辑  收藏  举报