[root@desktop ~]# diff http://www.example.net/index.PHP http://www.example.com/index.PHP diff: http://www.example.net/index.PHP: No such file or directory diff: http://www.example.com/index.PHP: No such file or directory [root@desktop ~]#
diff <(curl url1) <(curl url2)
在你的情况下:
diff <(curl http://www.example.net/index.PHP) <(curl http://www.example.com/index.PHP)
请注意,您可以使用curl -s进行更清晰的差异执行.