Hello,
I am trying to use the awk command to print two columns. One of them has a percentage value. This is for file system monitoring. When i try to read it from a file it does not recognize the precent sign and ignores it. How can i convert it or skip the % sign when using this command?
Any help would be appreciated.
Thanks.
Shawn
#! /usr/bin/ksh
HOST=`hostname`
cd /home/orabp1/scripts
/usr/bin/df -g | grep -i /bp1db01_bk|awk '{print $7" "$4}' > fs_usage
if [ `cat fs_usage |awk '{print $2}` -gt 36 ]
then
mailx -s "Backup Filesystem Usage in $HOST has exceded" acvd@drede.com < fs_usage
fi
bckp_chk.sh[7]: 35%: 0403-012 A test command parameter is not valid