Created
August 16, 2016 08:07
-
-
Save FabienArcellier/e9d857c381e3ca14ed004a564d8f11e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function loopdir { | |
command=$* | |
for d in */ ; do (cd $d; $command); done | |
} | |
function loopdirp { ## loop over directory based on a glob pattern loopdirp 'a*' rm deploy.yml | |
pattern=$1 | |
shift 1 | |
command=$* | |
for d in $pattern/ ; do (cd $d; $command); done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment