Skip to content

Instantly share code, notes, and snippets.

@cdolek
Created May 31, 2017 23:26
Show Gist options
  • Save cdolek/b913c6936b1bd539d9f05ef1d9c2b9f6 to your computer and use it in GitHub Desktop.
Save cdolek/b913c6936b1bd539d9f05ef1d9c2b9f6 to your computer and use it in GitHub Desktop.
Move first 1000 files in a folder to another folder
find . -maxdepth 1 -type f|head -1000|xargs -I{} mv {} ./targetDirectory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment