Skip to content

Instantly share code, notes, and snippets.

@rvill
Created April 13, 2015 20:56
Show Gist options
  • Save rvill/983325d9062a5902c296 to your computer and use it in GitHub Desktop.
Save rvill/983325d9062a5902c296 to your computer and use it in GitHub Desktop.
split folder into n items
ls -1 | sort -n | head -2000 | xargs -i mv "{}" /dest/folder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment