while read line do.. | Unix Linux Forums | Shell Programming and Scripting

while read line do.. | Unix Linux Forums | Shell Programming and Scripting

瀏覽:346
日期:2025-06-12
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 prior_rec_no=$rec_no prev_line=$line else if [[ $rec_no -eq $prior_rec_no ]] then if [[ $ben_type = "ODL ......看更多