Skip to content

Instantly share code, notes, and snippets.

@jrk
Created February 26, 2009 11:04
Show Gist options
  • Select an option

  • Save jrk/70797 to your computer and use it in GitHub Desktop.

Select an option

Save jrk/70797 to your computer and use it in GitHub Desktop.
foreach in bash
# foreach in bash
for file in `echo *`
do
do_stuff_to $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment