Thanks Singh for the quick reply , I am trying to extend the same code now as below
awk 'BEGIN {FS=OFS=","}
{$1="Align"
$COMMA=" , , , , ,"
$SIT="SIT";
print $1,$3,$10,$9,$7,$6,$4,$2,$COMMA,$5,$HPR,$11,$12,$13,$14,$15,$16,$17}' EXPDATA.txt>temp.txt
I need to insert few more columns like SIT and commas also
But it is prinitng only SIT and empty columns in the output file
Please help
---------- Post updated at 02:59 AM ---------- Previous update was at 02:51 AM ----------
Hi Cragun,
Just to be detail , My requirement is as below
Input file fields - 1,2,3,4,5,6,7,8,9,10,11,12
Ouput file fields should be - Align,10,9,7,6,4,2,,,,,5,SIT,11
I am trying to insert new fields and spaces basically .
Thanks