Skip to content

Instantly share code, notes, and snippets.

@t27
Created February 18, 2019 15:30
Show Gist options
  • Save t27/fa5a01fb671881a42b9f6999609b8958 to your computer and use it in GitHub Desktop.
Save t27/fa5a01fb671881a42b9f6999609b8958 to your computer and use it in GitHub Desktop.
Command to rename files for windows friendly filenames
# need to install `rename`
find /path/to/directory -depth -exec rename 's/[<>:"\\|?*]/_/g' {} +
@t27
Copy link
Author

t27 commented Feb 18, 2019

From here https://askubuntu.com/a/671328
more details and explanations on that page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment