Could someone tell me the code for doing the below inside a k shell?
I have a file file below:
$ more file1
>>>>>
AAA
BBB
CCC
<<<<<
>>>>>
DDD
EEE
FFF
<<<<<
I want the lines between ">>>>>" and "<<<<<" to be one line like below:
AAA BBB CCC
DDD EEE FFF
Any help will be greatly appreciated.