I would like to pass a list of variables to printf.

Is there a way to multiply a set printf length instead of
righting typing printf for each variable?

what I am trying to do is below:

         printf "%-${longest}s x 27\n",

 
$rptType,$mkt,$timeStamp,$cell,$sector,$carr,$satt,$sest,$fit,$psEst,$catt,$cest,$pcEst,$rfLost,

 
$cpDropCell,$cpDropRnc,$tuneAway,$tDrops,$pDcr,$ia,$pIa,$tccf,$failAp,$failTp,$failA10,$failAAA,$failPDSN;

Thank you,

Chris

Reply via email to