I have a huge textfile, approx 400.000 lines 80 charachters wide on liux.
Need to "unfold" the file, merging four lines into one ending up having 1/4 of the lines, each line 80*4 charachters long.
An easier way to do it with awk would be:
Although if you wanted to protect against ending up without a trailing newline it gets a little more complicated:
I hope I understood your question correctly. You have an input line like this (except your lines are longer):
You want output like this:
The following awk program should do it:
Run it like this: