-
-
Save vnoel/03d66085219c0650d584 to your computer and use it in GitHub Desktop.
Shell tricks
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
# how to split a string in bash | |
x=a:b:c | |
first_word=${x%%:*} | |
http://ask.metafilter.com/80862/how-split-a-string-in-bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment