Last active
September 19, 2021 17:18
-
-
Save lysandroc/afb0219ecfc12e0634a1ce7722ed3a6a to your computer and use it in GitHub Desktop.
script to fix patterns name in the onedrive sync app
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
//remove - or _ | |
zmv '(**/)(*)' '$1${2//[^A-Za-z0-9.]}' | |
//substitute - and _ for blank space | |
zmv '(**/)(*)' '${1${2//[^A-Za-z0-9.]}//_/ }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment