Skip to content

Instantly share code, notes, and snippets.

@henri
Last active October 24, 2025 08:24
Show Gist options
  • Select an option

  • Save henri/4be20d3cef767ffac46230de37d89c7a to your computer and use it in GitHub Desktop.

Select an option

Save henri/4be20d3cef767ffac46230de37d89c7a to your computer and use it in GitHub Desktop.
rsync vanished files removal wrapper
#!/bin/bash
rsync "$@" 2> >(grep -v vanished)
ret=$?
((ret==24)) && exit 0 || exit $ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment