From #57:
$ . /etc/lsb-release; echo $DISTRIB_DESCRIPTION Ubuntu 12.04.2 LTS
From #39:
$ cat /etc/lsb-release | grep DESCRIPTION | cut -f2 -d= | sed 's/\"//g' Ubuntu 12.04.2 LTS
From #40:
$ cat /etc/lsb-release | grep DESCRIPTION | cut -f2 -d'"' Ubuntu 12.04.2 LTS
The solution from #57 (first above) is simpler and better.
From #57:
$ . /etc/lsb-release; echo $DISTRIB_ DESCRIPTION
Ubuntu 12.04.2 LTS
From #39:
$ cat /etc/lsb-release | grep DESCRIPTION | cut -f2 -d= | sed 's/\"//g'
Ubuntu 12.04.2 LTS
From #40:
$ cat /etc/lsb-release | grep DESCRIPTION | cut -f2 -d'"'
Ubuntu 12.04.2 LTS
The solution from #57 (first above) is simpler and better.