Quote:
Originally Posted by burakkilic
Hi. I have some questions about using sed. I cannot use the hold buffer. For example i want to put first line to the buffer than take second line and append the buffer to the second line.then 3th to the all. It will be like 2->1->3 th lines. Any idea?
|
Code:
sed -n '1,2{h
n
G
p
}
3,$p' file