Hi,
Thanks for your time..
But the problem is, this script basename "/app/rms/rms/data/preticketing/penrpt/PenetrationReport_(MANN-6)_ByVendor_(01-NOV-2007_01-NOV-2007).csv"
is not applicable because those where just the results of the generated report. I cannot directly changed that.
Okay..to better understand:
penfilename[i]=`echo ${OUTFILE}*"(${daterange})".csv` --> this script stores the generated reports. And the generated report is the records in the output file.
Since OUTFILE is consists of the output directory and PenetrationReport.(/app/rms/rms/data/preticketing/penrpt/ --> output directory and PenetrationReport)
I need to removed the output directory but retains the looping.
the responsible script for the looping is this:
[I][i]while [ $i -lt "${#penfilename[*]}" ]
do
echo "penetration|${penfilename}|${penfilenamedaterange}" >> ${OUT_DIR}/penrpt_emailfile.txt
(( i=i+1 ))
done
I hope you can really help me.. This is an urgent task I needed to submit. And I don't know much on unix..
Thanks a lot