Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264
title
Source Link
jasonwryan
  • 74.8k
  • 35
  • 204
  • 230

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

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

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

Source Link

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