https://github.com/vaeth/comp
compare files or directories, including metadata
https://github.com/vaeth/comp
cmp compare-files diff recursive
Last synced: 16 days ago
JSON representation
compare files or directories, including metadata
- Host: GitHub
- URL: https://github.com/vaeth/comp
- Owner: vaeth
- Created: 2016-05-15T15:30:27.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T20:35:36.000Z (12 months ago)
- Last Synced: 2025-03-20T22:04:08.925Z (12 months ago)
- Topics: cmp, compare-files, diff, recursive
- Language: Perl
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# comp
Compare files or directories, including metadata
Author: Martin Väth (martin at mvath.de)
This project is under the BSD license 2.0 (“3-clause BSD license”).
SPDX-License-Identifier: BSD-3-Clause
The command `comp` is similar to `diff -r -q`, but it compares also metadata
like symlinks, timestamps, permissions, partial content, etc.
You can specify in great detail which data actually will be compared
or ignored, whether symlinks will be followed, etc.
Use `comp --man` to get an extended help as a manpage.
This is a ground-up rewrite and redesign of the `comp-old` script
(originally called `comp`) from https://github.com/vaeth/mv_perl/
The script requires __perl-5.12__ or newer and some modules shipped with that
perl version. In addition, it is recommended to have the `String::ShellQuote`
module installed to get an improved output, though this is not mandatory.
To install this script, simply copy the content of `bin/` to your `$PATH`.
To obtain __zsh completion__ support, also put the content of `zsh/` into
your `$fpath`.
(If you do not have root access, you can add the corresponding directory with
`fpath+=("...")` before you call `compdef` from your zsh initialization files).
For installation under Gentoo, you can use the ebuild from the mv overlay
(which is available over layman).