Skip to content

Instantly share code, notes, and snippets.

@catichenor
Last active July 3, 2018 18:57
Show Gist options
  • Save catichenor/32df716c82109a39e7ff28c819980e15 to your computer and use it in GitHub Desktop.
Save catichenor/32df716c82109a39e7ff28c819980e15 to your computer and use it in GitHub Desktop.
Remove files in parallel
# Find a sequence of files and remove them in parallel with xargs. Helpful for FUSE-based object stores attached to VMs.
find . -type f -name "file*.png" | xargs rm -n 1 -P 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment