NaF
March 30th, 2009, 07:55 PM
Hello :)
I'm trying to write a little script, that'll grab just the version number of the machine's distro I'm running on. (I don't know if this'll work at all on other than ubuntu variants, but it matters little for now)
I've come to the conclusions that this is a way to go:
echo "`lsb_release -a | grep 'Description:' | awk '{print $2 " " $3 }'`"
does what I intended for it to do - cuts everything away except "Ubuntu 8.04.2" (in this case mind you). But on top of that, no matter what I try and cut away from the output, I get a
No LSB modules are available.
above the modified output. What is that and how do I make sure it doesn't appear? :confused:
Kind regards.
I'm trying to write a little script, that'll grab just the version number of the machine's distro I'm running on. (I don't know if this'll work at all on other than ubuntu variants, but it matters little for now)
I've come to the conclusions that this is a way to go:
echo "`lsb_release -a | grep 'Description:' | awk '{print $2 " " $3 }'`"
does what I intended for it to do - cuts everything away except "Ubuntu 8.04.2" (in this case mind you). But on top of that, no matter what I try and cut away from the output, I get a
No LSB modules are available.
above the modified output. What is that and how do I make sure it doesn't appear? :confused:
Kind regards.