ZB, thanks!
it works!
however, i face another complication here....
sometimes, certain line in the script (let say ABC) being COMMENT OFF (as below), & we need to EXCLUDE it from the printfile log.
lp -d lp06 -t 'REPORT FOR FINANCE -FIN-' $daily/FINRPT
lp -d lp06 -t 'REPORT FOR MANAGEMENT -MGMFIN-' $daily/FINRPT
#lp -d lp06 -t 'REPORT FOR FINANCE -FIN1-' $daily/FINRPT1
lp -d lp06 -t 'REPORT FOR HUMAN RESOURCE -HR-' $dd_daily/HRRPT
lp -d lp06 -t 'REPORT FOR MANAGEMENT -MGM-' $dd_daily/MGMRPT
meaning, to get the printfile log containing only:
FINRPT
HRRPT
MGMRPT
for the above scenario.
wondering how could it possible for us to achive this...