Created
November 6, 2014 11:06
-
-
Save joshbc/6bfc24166591e3075bad to your computer and use it in GitHub Desktop.
Explode String Shell Script
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
string="[email protected];[email protected];[email protected]" | |
str1=${string%%;*} | |
str3=${string##*;} | |
temp=${string#$str1;} | |
str2=${temp#;$str3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment