Skip to content

Instantly share code, notes, and snippets.

@pcmantz
Created March 20, 2012 18:46
Show Gist options
  • Save pcmantz/2139620 to your computer and use it in GitHub Desktop.
Save pcmantz/2139620 to your computer and use it in GitHub Desktop.
pmantz@interzone:~$ echo ruby-1.9.2-p318 | sed -e 's/-n.*//'
ruby-1.9.2-p318
pmantz@interzone:~$ echo $(echo ruby-1.9.2-p318 | sed -e 's/-n.*//') #?
ruby-1.9.2-p318
pmantz@interzone:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment