Skip to content

Instantly share code, notes, and snippets.

@bennuttall
Created January 28, 2013 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bennuttall/4651898 to your computer and use it in GitHub Desktop.
Save bennuttall/4651898 to your computer and use it in GitHub Desktop.
Code snippets from Bash Batch Install Basics blog post
apps=(
vim
git
tree
php5
)
# Loop over apps and install each one with default 'yes' flag
for app in "${apps[@]}"
do
apt-get install $app -y
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment