Skip to content

Instantly share code, notes, and snippets.

@mindjiver
Last active August 29, 2015 14:07
Show Gist options
  • Save mindjiver/11ddd520120e958ec9fc to your computer and use it in GitHub Desktop.
Save mindjiver/11ddd520120e958ec9fc to your computer and use it in GitHub Desktop.
Show Erlang version
#!/bin/bash
erlang_version=$(erl -eval 'erlang:display(erlang:system_info(system_version)), halt().' -noshell |
sed -e 's@"@@g' | sed -e 's@\\n@@g')
echo "$erlang_version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment