when i try parsing a file by executing this command from within php using shell_exec():
$shellCommand = "cat $filelocn | awk 'BEGIN{RS="<br>"}{$1=$1}1' |sed '/CURRENT/d' ";
echo $shellCommand ;
An error is displayed:
PHP Parse error: syntax error, unexpected '>' in filename.php
i also tried adding \ before ' ie:
"cat $filelocn | awk \'BEGIN{RS=\"<br>\"}{$1=$1}1'";
but it again throws error.
How do i resolve this issue ?