Code:
+ inpFile=input2
+ outFile=/home/Output.txt
+ tmpFile1=/tmp/sample1.txt
+ tmpFile2=/tmp/sample2.txt
+ sortFile=/tmp/sortfile.txt
+ TOTAL_FILEDS=9
+ COUNT=1
+ rm -f /home/vrajiah/Output.txt
+ cat input2
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ sed s/00,*//g;s/,$//g
+ wc -c
+ count_fields= 45
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ cut -d, -f1-9
+ sed s/00,*//g;s/,$//g
+ wc -c
+ cnt_flds1= 15
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ cut -d, -f10-18
+ sed s/00,*//g;s/,$//g
+ wc -c
+ cnt_flds2= 15
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ cut -d, -f19-27
+ sed s/00,*//g;s/,$//g
+ wc -c
+ cnt_flds3= 15
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ sed s/\(.\{26\}\),\(.\{26\}\),\(.\{26\}\).*/\1\n\2\n\3/g
+ > /tmp/sortfile.txt
+ cut -d, -f1 /tmp/sortfile.txt
+ grep -v 00
+ > /tmp/sample1.txt
+ cut -d, -f1 /tmp/sortfile.txt
+ grep -v 00
+ sort
+ > /tmp/sample2.txt
+ diff /tmp/sample1.txt /tmp/sample2.txt
+ > /dev/null
...
+ COUNT=9
+ cut -d, -f9 /tmp/sortfile.txt
+ grep -v 00
+ > /tmp/sample1.txt
+ cut -d, -f9 /tmp/sortfile.txt
+ grep -v 00
+ sort
+ > /tmp/sample2.txt
+ diff /tmp/sample1.txt /tmp/sample2.txt
+ > /dev/null
+ COUNT=10
+ echo 00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
00,11,21,00,00,55,00,73,83,07,00,22,39,43,00,66,00,00,00,15,00,00,44,58,67,00,87
+ COUNT=1
+ rm -f /tmp/sample1.txt /tmp/sample2.txt /tmp/sortfile.txt
+ exit 0