我是否可以比较两个不同的网址/网站,而无需先使用下载文件wget
或者先做类似的事情。我尝试了以下操作,但收到以下错误。
[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 ~]#
当然你可以使用curl
,虽然有点奇怪:
diff <(curl url1) <(curl url2)
在你的情况下:
diff <(curl http://www.example.net/index.php) <(curl http://www.example.com/index.php)
注意你可以使用curl -s
为了更干净的差异执行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)