if ($line =~ m/ Input queue: 0\/75\/(.*)\/39 (size\/max\/drops\/flushes); Total output drops: (.*)/) { printf("%-20.20s %-22.22s : $line\n",$file,$currentInterface) if ($1 || $2 != 0); }