Skip to main content
1 of 2
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/.. 
l0b0
  • 53.6k
  • 48
  • 225
  • 398