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
Post a Comment