Skip to content

Instantly share code, notes, and snippets.

@courville
Created January 4, 2019 14:07
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 courville/13eeb4a9e001e7b4ee9fb0726e42844b to your computer and use it in GitHub Desktop.
Save courville/13eeb4a9e001e7b4ee9fb0726e42844b to your computer and use it in GitHub Desktop.
fix filenames to avoid samba client name mangling
find . -type f -name \*"[\*\?\:<>\\\"\|]"\* -print0 | xargs -0 rename -v 's/[\*\?\:<>\\\"\|]/_/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment