Skip to content

Instantly share code, notes, and snippets.

@jduckles
Last active June 27, 2024 13:14
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