awk multiline csv flattener Posted on March 10, 2011 by freegnu awk 'BEGIN{RS="";FS=",[\n]*";OFS="";ORS=""}{for(i=1;i<NF;i++) print $i ",";print $NF "\n"}' Share this:FacebookXLike Loading... Related