Reputation: 414
<?php
$dd="lastDateTemplate-28-11-2013.csv";
$c_row=exec("awk 'BEGIN { FS = "," } ; { print $1 }'" .$dd);
?>
I am not able to execute AWK command in PHP.
Below is the error -:
PHP Parse error: syntax error, unexpected '='
Upvotes: 0
Views: 1188