Home » Infrastructure » Unix » Arugement help
Arugement help [message #155259] Fri, 13 January 2006 01:33 Go to next message
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

Re: Arugement help [message #155265 is a reply to message #155259] Fri, 13 January 2006 07:22 Go to previous message
cgk_js
Messages: 48
Registered: December 2005
Member
Thanks the problem has been solved with
the $* in the mail_report
Previous Topic: Oracle 10g release 2 for Solaris x86 ?
Next Topic: connect to database
Goto Forum:
  


Current Time: Fri Nov 22 10:22:36 CST 2024