Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created October 8, 2015 17:36
Show Gist options
  • Save lcaballero/8e60e1581cb331a76dc3 to your computer and use it in GitHub Desktop.
Save lcaballero/8e60e1581cb331a76dc3 to your computer and use it in GitHub Desktop.
Bash looping
#!/bin/bash
# Examples of Looping in Bash
tools=( git zsh emacs tmux mlocate open-vm-tools )
for r in "${tools[@]}"; do
echo $r
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment