Last active
January 15, 2020 03:23
-
-
Save ezy/e6b6c7d7342d50eb9b4b31d41ad3f890 to your computer and use it in GitHub Desktop.
filenames to parent dir : name.mp4 => name/name.mp4
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
find . -name "*.mp4" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment