awk -F "|" 'begin{id=1001}
{printf("%15d|%s%s|\n",id,$0,55,"xx","");
id=id+1;
printf("%15d|%s%s|\n",id,$0,56,"xx","");
id=id+1;
}' aa.txt
awk -F "|" 'begin{id=1001}
{printf("%15d|%s%s|\n",id,$0,55,"xx","");
id=id+1;
printf("%15d|%s%s|\n",id,$0,56,"xx","");
id=id+1;
}' aa.txt