my $cmd = "cat /tmp/win.log /tmp/lnx.log | grep -v "/" . $nextmonth . "/" | sort -k4.2 > /export/w3logs/" . $year . $month . ".log"; system($cmd);