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

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

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