Last active
September 9, 2023 09:13
-
-
Save rolve/bba11b033d4ce365f99c84e30f3e397d to your computer and use it in GitHub Desktop.
Script to revert file names changed by Syncthing's simple versioning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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