while read line do rec_no=`echo $line|cut -c2-10` ben_type=`echo $line|cut -c28- 33` amount=`echo $line|cut -c11-18` if [[ $rec_cnt -eq 1 ]] then ...
www.unix.com