Skip to content

Instantly share code, notes, and snippets.

@Gems Gems/iterate.sh
Last active Dec 20, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.