Skip to content

Instantly share code, notes, and snippets.

@jduckles
Last active November 20, 2019 20:26
Show Gist options
  • Save jduckles/53f8565780da7d8acec2dfd294060c99 to your computer and use it in GitHub Desktop.
Save jduckles/53f8565780da7d8acec2dfd294060c99 to your computer and use it in GitHub Desktop.
This is how we can use loops to iterate over a list of items.
#!/bin/bash
for i in $(cat list_of_items.txt); do
# This echoes out each item
echo $i;
done
Beer
Wine
Cookies
Bread

Title of my blog post

This is somee content I'm adding.

  • List
  • of
  • items
  1. Numbred
  2. list
  3. of
  4. items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment