Skip to main content
1 of 3

How i can 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