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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…