-
-
Save DiogenesAnalytics/21fcddd4523a085883551c6b9075baf2 to your computer and use it in GitHub Desktop.
Split a directory of 1000 files into 10 directories of 100 files.
This file contains 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
for number in $(seq 1 10); do mkdir "Part_${number}" && mv "$(ls *.mp4 | head -n 100)" "Part_${number}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment