2013年4月25日星期四

insert contents of a file to another file at specific line


# insert content of "mao" to file "head", after the line with "source"
sed '/source/r mao' head | less -S

没有评论:

发表评论