Skip to content

Instantly share code, notes, and snippets.

@richo
Created October 13, 2015 03:52
Show Gist options
  • Save richo/3fbe3de20cc3899500df to your computer and use it in GitHub Desktop.
Save richo/3fbe3de20cc3899500df to your computer and use it in GitHub Desktop.
#!/bin/sh
string="these are:some words"
for i in $string; do
echo "i: $i"
done
IFS=":"
for j in $string; do
echo "j: $j"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment