Maybe
diff -u <(ssh host1 cat file1) <(ssh host2 cat file2)
?
That could be put into a shell script that does the approriate
text manipulations on the original $1 and $2.
HTH,
Arnold
Dave Horsfall <dave(a)horsfall.org> wrote:
Every so often I want to compare files on remote
machines, but all I can
do is to fetch them first (usually into /tmp); I'd like to do something
like:
rdiff host1:file1 host2:file2
Breathes there such a beast? I see that Penguin/OS has already taken
"rdiff" which doesn't seem to do what I want.
Think of it as an extension to the Unix philosophy of "Everything looks
like a file"...
-- Dave