Skip to content

Instantly share code, notes, and snippets.

@vnoel
Created May 29, 2014 09:09
Show Gist options
  • Save vnoel/03d66085219c0650d584 to your computer and use it in GitHub Desktop.
Save vnoel/03d66085219c0650d584 to your computer and use it in GitHub Desktop.
Shell tricks
# 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