Skip to content

Instantly share code, notes, and snippets.

@telatin
Created March 2, 2018 16:55
Show Gist options
  • Save telatin/9633dbeaa5afc6c81571a52f3623be26 to your computer and use it in GitHub Desktop.
Save telatin/9633dbeaa5afc6c81571a52f3623be26 to your computer and use it in GitHub Desktop.
#!/bin/bash
# A for loop iterates a set of command (between "do" and "done"),
# one time for each of the item in a list. In this example we make
# a list of three names
for FirstName in Andy Brandy Candy;
do
echo "Hello $FirstName!"
# You can type many commands here!
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment