Created
July 28, 2017 13:57
-
-
Save amatiasq/f28687ce41fab04b27813cb4e5e1faaf to your computer and use it in GitHub Desktop.
Run 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 | |
cmd=$@; | |
for i in $(ls) | |
do | |
if [ -d "$i" ] | |
then | |
echo "Entering ./$i" | |
cd "$i" | |
eval $cmd | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment