2
我使用差異和排序來找出2個文件之間的差異。從Linux提示符下面的工作完美:PHP exec/diff/No such file
diff <(sort /real/path/yesterday.txt) <(sort /real/path/today.txt) > diff-today.txt
但我沒能得到同樣的命令,使用EXEC()從PHP運行:
exec("diff <\(sort /real/path/yesterday.txt\) <\(sort /real/path/today.txt\) > diff-today.txt");
我收到以下錯誤:
sh: (sort: No such file or directory
有沒有想法?
Thx。有時只是將它分開就更容易了:-) – clund