Skip to content

Instantly share code, notes, and snippets.

@scw
Created February 14, 2012 20:22
Show Gist options
  • Save scw/1829955 to your computer and use it in GitHub Desktop.
Save scw/1829955 to your computer and use it in GitHub Desktop.
example shell loop
#!/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