Reputation: 8405
Curious if there is a quick and cheap way to determine if the operating system a script is running on is either Oracle Linux 5 or Oracle Linux 6.
Upvotes: 0
Views: 220
Reputation: 626
It is not super portable but you could try lsb_release -r.
lsb_release -r
Upvotes: 2