Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created May 13, 2014 23:26
Show Gist options
  • Select an option

  • Save Atalanta/fc18314219c59993e7f1 to your computer and use it in GitHub Desktop.

Select an option

Save Atalanta/fc18314219c59993e7f1 to your computer and use it in GitHub Desktop.
[root@localhost ~]# sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release
6.5
[root@localhost ~]# sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]'
centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment