Skip to content

Instantly share code, notes, and snippets.

@pecigonzalo
Created December 20, 2021 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pecigonzalo/63decbd1a4faaf98083a1ccd4957e103 to your computer and use it in GitHub Desktop.
Save pecigonzalo/63decbd1a4faaf98083a1ccd4957e103 to your computer and use it in GitHub Desktop.
Run command in folders
#!/usr/bin/env bash
set -euo pipefail
for repo in $(fd --type=directory -d 1); do
pushd $repo
${@:1:1} "${@:2}"
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment