[Solved] Shell script to get the OS version [closed]
[ad_1] Simply use lsb_release: $ lsb_release -sr 12.04 See the man page for all available options. Note that not all platforms or Linux distributions have lsb_release. 3 [ad_2] solved Shell script to get the OS version [closed]