Skip to content

Instantly share code, notes, and snippets.

@danhaywood
Created November 11, 2015 12:39
Show Gist options
  • Save danhaywood/ff17946ee05652402cfb to your computer and use it in GitHub Desktop.
Save danhaywood/ff17946ee05652402cfb to your computer and use it in GitHub Desktop.
#!/bin/bash
#ls -d1 isis-* template > _all.txt
file="_all.txt"
for a in `cat $file | \
grep -v ^# `
do
pushd $a >/dev/null
echo ""
pwd
eval "$@"
popd >/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment