Skip to main content
2 of 3
title
jasonwryan
  • 74.8k
  • 35
  • 204
  • 230

Use files from find command in parallel batches

I have this code to search for dirs in current folder and then tar it

find . -type d -maxdepth 1 -mindepth 1 -print -exec tar czf {}.tar.gz {} \;

I have 100s of folders and currently it does one by one folder.

Is it possible that I can run in batch of 5 in parallel