Skip to content

Instantly share code, notes, and snippets.

@rolve
Last active September 9, 2023 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolve/bba11b033d4ce365f99c84e30f3e397d to your computer and use it in GitHub Desktop.
Save rolve/bba11b033d4ce365f99c84e30f3e397d to your computer and use it in GitHub Desktop.
Script to revert file names changed by Syncthing's simple versioning
for f in `find | sort`; do if [ -f $f ]; then mv -f $f `echo $f | sed 's/~[^.]*//'`; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment