Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

diff two urls (i.e. html, css or js, etc.) [closed]

Tags:

macos

diff

Anyone know of a tool to diff two files from a URL? I have different websites with different version of certain files (like js, css, html, etc.) and would like to compare both urls, like:

http://domain.tld/js/x.js vs http://domain.tld/js/y.js

Running OSX...

I now download (wget) the files needed, and then compare with FileMerge. But its kind of cumbersome. Some plugin would be preferred.

like image 439
Roger Avatar asked Feb 20 '26 03:02

Roger


1 Answers

I know you've said this is cumbersome, but it seems pretty simple...

diff <(curl -s http://example.com/foo) <(curl -s http://example.com/bar) --side-by-side
like image 139
ahruss Avatar answered Feb 22 '26 01:02

ahruss



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!