[TUHS] Be there a "remote diff" utility?

arnold at skeeve.com arnold at skeeve.com
Thu May 16 16:51:43 AEST 2024


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 at 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


More information about the TUHS mailing list