unix - How do i diff two files from the web -


i want see differences of 2 files not in local filesystem on web. so, think if have use diff, curl , kind of piping.

something

curl http://to.my/file/one.js http://to.my/file.two.js | diff  

but doesn't work.

the unix tool diff can compare 2 files. if use <() expression, can compare output of command within indirections:

diff <(curl file1) <(curl file2) 

so in case, can say:

diff <(curl http://to.my/file/one.js) <(curl http://to.my/file.two.js) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -