rdiff 400 B

12345678910111213141516171819
  1. #!/bin/sh
  2. usage () {
  3. cat <<EOF>&2
  4. Usage: ${0##*/} [OPTIONS] DIR1 DIR2
  5. Use rsync to display a folder tree diff between DIR1 and DIR2.
  6. Additional rsync OPTIONS can be used, such as '-t, --times'.
  7. Lookup '-i, --itemize-changes' in rsync(1) for the legend.
  8. EOF
  9. }
  10. [ $# -lt 2 ] && usage && exit 1
  11. [ "$1" = "-h" ] && usage && exit
  12. [ "$1" = "--" ] && shift
  13. rsync -nivr -lpgod --delete --size-only "$@"