Skip to main content
deleted 8 characters in body
Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

GNU Parallel does this excellently. I've been using this structure daily for a long time:

parallel "cd--wd '{} &&' gh'gh repo sync && cd -"sync' ::: ./*/.git/.. 

Similar test on my own system:

$ parallel --wd '{}' 'pwd' ::: ~/my\ projects/*/.git/.. /home/username/my projects/acard /home/username/my projects/acp01 [125 more] 

GNU Parallel does this excellently. I've been using this structure daily for a long time:

parallel "cd {} && gh repo sync && cd -" ::: ./*/.git/.. 

GNU Parallel does this excellently. I've been using this structure daily for a long time:

parallel --wd '{}' 'gh repo sync' ::: ./*/.git/.. 

Similar test on my own system:

$ parallel --wd '{}' 'pwd' ::: ~/my\ projects/*/.git/.. /home/username/my projects/acard /home/username/my projects/acp01 [125 more] 
Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

GNU Parallel does this excellently. I've been using this structure daily for a long time:

parallel "cd {} && gh repo sync && cd -" ::: ./*/.git/..