This is a discussion on another sed question.... - Linux ; Hello again..... I have another quesation..... again with sed and going in circles... How can I "move" line 5: "phone rings" to line 2 and everything shift one line below as below and vice versa.... BEFORE ====== line 1) this ...
Hello again.....
I have another quesation..... again with sed and going in circles...
How can I "move" line 5: "phone rings" to line 2 and everything shift
one line below as below and vice versa....
BEFORE
======
line 1) this is hot
line 2) this is nice
line 3) i like my car
line 4) cookies are good
line 5) phone rings <--- need to move this to line 2
line 6) movies are good
AFTER
=====
line 1) this is hot
line 2) phone rings
line 3) this is nice
line 4) i like my car
line 5) cookies are good
line 6) movies are good
Appreciate it there is a one liner sed command for this......
cheers
hallian