My awk command works as expected and returns 2 lines at command prompt.
When I use php "exec" function, it returns only the second line.
echo exec("awk -v RS="," '/some_text/' test1.html");
How do I return all output of shell command using PHP?
See Question&Answers more detail:os