Created
February 14, 2012 20:22
-
-
Save scw/1829955 to your computer and use it in GitHub Desktop.
example shell loop
This file contains 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
#!/usr/bin/env bash | |
for file in `find . -name "*.env"`; do | |
# we want the name without the '.env' bit | |
base=`basename $file .env` | |
echo $base | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment