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 iI can run in batch of 5 in parallel