What I am trying to do is whenever there is a repition of pattern DESCRIPTION consecutively I want to delete all the lines but first.
On the outpur file i want to add consecutive lines to one line.
I couldn't figure out a way to do the first step.
But for secod i was trying this script
The reason why you get "line too long" is because when you unset the record separator like this: RS="" then you have told awk to separate records with blank lines. If there are no blank lines then the whole file is treated as a single record.