Skip to content

Instantly share code, notes, and snippets.

@AmreeshTyagi
Last active March 22, 2018 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmreeshTyagi/ac5af10694841b35d537ce2fde55ab3b to your computer and use it in GitHub Desktop.
Save AmreeshTyagi/ac5af10694841b35d537ce2fde55ab3b to your computer and use it in GitHub Desktop.
#!/bin/bash
IFS=';' read -ra ADDR <<< "$IN"
for i in "${ADDR[@]}"; do
# process "$i"
done
#Ref: https://stackoverflow.com/questions/918886/how-do-i-split-a-string-on-a-delimiter-in-bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment