Skip to content

Instantly share code, notes, and snippets.

@copyleftdev
Created February 28, 2016 16:34
Show Gist options
  • Save copyleftdev/46c0c3565292645f1186 to your computer and use it in GitHub Desktop.
Save copyleftdev/46c0c3565292645f1186 to your computer and use it in GitHub Desktop.
create subfolder for massive file set
i=1;while read l;do mkdir $i;mv $l $((i++));done< <(ls|xargs -n100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment