Created
February 18, 2019 15:30
-
-
Save t27/fa5a01fb671881a42b9f6999609b8958 to your computer and use it in GitHub Desktop.
Command to rename files for windows friendly filenames
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
# need to install `rename` | |
find /path/to/directory -depth -exec rename 's/[<>:"\\|?*]/_/g' {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From here https://askubuntu.com/a/671328
more details and explanations on that page