Awk in perl - TechRepublic
General discussion
December 6, 2002 at 03:25 AM
andrew.tan

Awk in perl

by andrew.tan . Updated 23 years, 3 months ago

$awksmd = “/bin/awk”;
$datecmd = “/bin/date”;
$temp = `$datecmd | $awkcmd ‘{print $5}’`;
print “$temp”;

Does anyone know why the following perl code does not work. When I ran the perl script above it does not seem like awk is invoked.

This discussion is locked

All Comments