rcomm [ options ] [[user@]host:]file1 [[user@]host:]file2
rcomm [ options ] [user@]host:file1
rcomm [ options ] [[user@]host:]file1 [user@]host:
rcomm [ options ] [[user@]host: [[user@]host:]file2
options ::= [ -l localuser ] [ diff_options ]
When only specifying a remote file, it is compared with the related local file.
Example:
[ /opt/edrc/bin ] [ root@acme-008 ][*edrc*/bash]: rcomm acme-007:/etc/hosts
or
[ /opt/edrc/bin ] [ root@acme-008 ][*edrc*/bash]: rcomm acme-007: /etc/hosts
will compare the files /etc/hosts from the system acme-007 with the local /etc/hosts file on the acme-008 system.
The example above is therefore equal to:
[ /opt/edrc/bin ] [ root@acme-008 ][*edrc*/bash]: rcomm acme-007:/etc/hosts /etc/hosts
If the given file(s) are gziped (.gz) or bzip2ed (.bz2, .bz), the related uncompressed content is compared.
When only specifying the first file, it is compared with the related local file.
Use -l $USER if you are not root.
See comm(1) for a description of the available comm options.
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.