I have the following in the input file#Start para0 hello dq1 world dq2 welcomes dq3 you dq#Start para0 how tq1 are tq2 you tq#Start para0 say dq1 hello dq2 to dq3 the dq4 world dqI want this directed to another file like this#Start para3 you dq2 welcomes dq1 world dq0 hello dq#Start para2 you tq1 are tq0 how tq#Start para4 world dq3 the dq2 to dq1 hello dq0 say dqHow can I do this using sed or awk? Basically I want the paragraph within the #Start para reversed. But the order of the paragraphs should remain the same.
How to reverse the lines between a pattern into another file
text processing;sed;awk