Skip to content

Instantly share code, notes, and snippets.

@amatiasq
Created July 28, 2017 13:57
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 amatiasq/f28687ce41fab04b27813cb4e5e1faaf to your computer and use it in GitHub Desktop.
Save amatiasq/f28687ce41fab04b27813cb4e5e1faaf to your computer and use it in GitHub Desktop.
Run in folders
#!/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