Skip to content

Instantly share code, notes, and snippets.

@sinky
Created August 10, 2016 08:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sinky/39cfa94025473bcc3594da8a76b84de8 to your computer and use it in GitHub Desktop.
Do something for each file in a directory with bash (every time i don't remember)
for a in $(ls -1 *.txt); do echo $a; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment