Skip to content

Instantly share code, notes, and snippets.

@scw
Created February 14, 2012 20:22
Show Gist options
  • Select an option

  • Save scw/1829955 to your computer and use it in GitHub Desktop.

Select an option

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