tor 2005-01-13 klockan 15:17 -0500 skrev seth vidal: > On Thu, 2005-01-13 at 14:13 -0600, Rex Dieter wrote: > > daly@xxxxxxxxxxxxxxxxxxxxx wrote: > > > Is there a reliable way to know what version of Fedora Core is running? > > > I need to write a shell script to distinguish the cases. > > > uname does not seem to provide this information in a form I can use. > > > > Parse /etc/redhat-release > > > > rpm -q fedora-release rpm -q --qf "%{version}\n" fedora-release should be water-proof :-) /Peter