原帖由 chenbindream 于 2007-12-7 10:45 發(fā)表
root@application # sed -n -e '2,5{2h;2!H}' -e '6,${7G;p}' file
Sixth is a line 6
This is seven Line 7
The second is line 2
That is the third line 3
the fourth is line 4
five line 5
Right eigth line 8
That is ninth Line 9
The line is ten 10
last line is the last line 11
缺少一行喲
歡迎光臨 Chinaunix (http://www.72891.cn/) | Powered by Discuz! X3.2 |