Skip to content

Instantly share code, notes, and snippets.

@Gems
Last active December 20, 2015 14:19
Show Gist options
  • Save Gems/6145635 to your computer and use it in GitHub Desktop.
Save Gems/6145635 to your computer and use it in GitHub Desktop.
alias *="sh iterate.sh "
#!/bin/bash
path=$PWD
for dir in $path/*;
do
if [ -d $dir ]; then
echo "\033[0;33m$dir>\033[0;34m $1 $2\033[00m"
cd "$dir"
$@
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment