-
-
Save jasodeep/e56866c3807aab729ce2308440095afd 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