Skip to content

Instantly share code, notes, and snippets.

@ezy
Last active January 15, 2020 03:23
Show Gist options
  • Save ezy/e6b6c7d7342d50eb9b4b31d41ad3f890 to your computer and use it in GitHub Desktop.
Save ezy/e6b6c7d7342d50eb9b4b31d41ad3f890 to your computer and use it in GitHub Desktop.
filenames to parent dir : name.mp4 => name/name.mp4
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