Last active
March 5, 2019 10:39
-
-
Save jetstreamin/f308702e54c4b72d88ba9bbce6d02be8 to your computer and use it in GitHub Desktop.
loop.sh example of a loop in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# plucked from https://stackoverflow.com/a/25180186 | |
#!/bin/bash | |
# Read a string with spaces using for loop | |
for value in I like programming | |
do | |
echo $value | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment