"376964582","1","rotated","2010-05-06 12:40:47","1205847472","436201","444070","444070","sv","663","dm","Exceeded","2","2001","21","deer","10","21
"
"376964582","1","rotated","2010-05-06 12:40:47","1205847472","436201","444070","444070","sv","663","dm","Exceeded","2","2001","21","deer","10","21
"
I have newline chars at the end of the row, how do i remove them using awk ?
---------- Post updated at 05:40 PM ---------- Previous update was at 04:43 PM ----------
awk -F "," '$NF { a=$0; getline; $0=a$0 } 1 ' input.txt > output.txt
I tried the above but it worked only for few lines not to the end of the file. My file is huge.