Created
December 20, 2021 08:22
-
-
Save pecigonzalo/63decbd1a4faaf98083a1ccd4957e103 to your computer and use it in GitHub Desktop.
Run command in folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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