2 added 160 characters in body
source | link

It might not be exactly what you're looking for, but I'm curious if a variant on

rsync -vnr --size-only SRCDIR DESTDIR

Will give you what you want.

  • --size-only means that it will also list any files that are different sizes (in this case, the important part is that it shuts off timestamp comparisons)
  • -n suppresses the actual 'sync' part of rsync, making it not actually modify the DESTDIR
  • -v verbosifies it, so we get a printout of what would have happened
  • -r ecursive
  • You might hit a corner case where --ignore-existing would be handy

You may find other useful options


An alternative grep/find option that will ignore directories:

fgrep -vf <(find REF -type f -printf "%f\n") <(find SRC -type f -printf "%f\n")

It might not be exactly what you're looking for, but I'm curious if a variant on

rsync -vnr --size-only SRCDIR DESTDIR

Will give you what you want.

  • --size-only means that it will also list any files that are different sizes (in this case, the important part is that it shuts off timestamp comparisons)
  • -n suppresses the actual 'sync' part of rsync, making it not actually modify the DESTDIR
  • -v verbosifies it, so we get a printout of what would have happened
  • -r ecursive
  • You might hit a corner case where --ignore-existing would be handy

You may find other useful options

It might not be exactly what you're looking for, but I'm curious if a variant on

rsync -vnr --size-only SRCDIR DESTDIR

Will give you what you want.

  • --size-only means that it will also list any files that are different sizes (in this case, the important part is that it shuts off timestamp comparisons)
  • -n suppresses the actual 'sync' part of rsync, making it not actually modify the DESTDIR
  • -v verbosifies it, so we get a printout of what would have happened
  • -r ecursive
  • You might hit a corner case where --ignore-existing would be handy

You may find other useful options


An alternative grep/find option that will ignore directories:

fgrep -vf <(find REF -type f -printf "%f\n") <(find SRC -type f -printf "%f\n")

1
source | link

It might not be exactly what you're looking for, but I'm curious if a variant on

rsync -vnr --size-only SRCDIR DESTDIR

Will give you what you want.

  • --size-only means that it will also list any files that are different sizes (in this case, the important part is that it shuts off timestamp comparisons)
  • -n suppresses the actual 'sync' part of rsync, making it not actually modify the DESTDIR
  • -v verbosifies it, so we get a printout of what would have happened
  • -r ecursive
  • You might hit a corner case where --ignore-existing would be handy

You may find other useful options