remove escapes in awk scripts when it is running inside domR

This commit is contained in:
Kelven Yang 2011-01-13 14:27:28 -08:00
parent 3c6258a0bf
commit 6fe42d144f

View File

@ -33,7 +33,7 @@ delete_public_interface () {
}
get_usage () {
iptables -L NETWORK_STATS -n -v -x | awk '\$1 ~ /^[0-9]+\$/ { printf \"%s:\", \$2}'; /root/clearUsageRules.sh > /dev/null
iptables -L NETWORK_STATS -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; /root/clearUsageRules.sh > /dev/null
if [ $? -gt 0 -a $? -ne 2 ]
then
printf $?