rcomm

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 14 January 2021
Index Return to Main Contents

 

NAME

rcomm - compare (comm) remote- or local file(s)

 

SYNOPSIS

edrc/bin/rcomm [ -h ]

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 ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

compare (comm) remote- or local file(s).

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.

 

OPTIONS

-h
usage message.

[[user@]host:]file1
first remote- or local file.

[[user@]host:]file2
second remote- or local file.

When only specifying the first file, it is compared with the related local file.

-l localuser
use the local user localuser to initiate the connection. Default local user is edrc.

Use -l $USER if you are not root.

comm_options
options of the comm(1) command.

See comm(1) for a description of the available comm options.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
error(s) while processing the given file(s) occured.

4
usage printed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), edrcsetup(1m), comm(1), diff(1), rcat(1), rdiff(1), ssh-exec(1), ssh-exec.cfg(4)

 

NOTES

rcomm uses rcat(1) internally to get the remote- and local files.

 

BUGS

-

 

AUTHOR

rcomm was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2021 by Christian Walther

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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:10 GMT, August 28, 2024