Arugement help [message #155259] |
Fri, 13 January 2006 01:33 |
cgk_js
Messages: 48 Registered: December 2005
|
Member |
|
|
Hi,
Pls help on this urgently
i should get as folows in the report file and display instead i am getting as "TOTAL"
Expected result
===============
Total Number of IFA codes Present [51]
function mail_report
{
MESSAGE=$1
echo $MESSAGE
echo $MESSAGE >> ${REPORT_FILE}
}
SPOOL_FILE = 'TOTAL COUNT [51] PK REMOVE STATUS [1] PK SET STATUS [0]';
mail_report `grep "TOTAL COUNT" ${SPOOL_FILE} | cut -d ' ' -f3,7,11 |
awk -F " " ' {print "Total Number of IFA codes Present " $1}'`
Thanks
Gopal
|
|
|
|