What's the best way to compare dotted version strings from a script?

2011-08-31 Thread David Howells

Is there a program or script installed/installable by Fedora that can be used
to compare dotted version strings (eg. 1.5.2) from a shell script?

David
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: What's the best way to compare dotted version strings from a script?

2011-08-31 Thread Dan Horák
David Howells píše v St 31. 08. 2011 v 18:20 +0100: 
 Is there a program or script installed/installable by Fedora that can be used
 to compare dotted version strings (eg. 1.5.2) from a shell script?

rpmdev-vercmp could do the work


Dan


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: What's the best way to compare dotted version strings from a script?

2011-08-31 Thread Richard W.M. Jones
On Wed, Aug 31, 2011 at 06:20:35PM +0100, David Howells wrote:
 Is there a program or script installed/installable by Fedora that can be used
 to compare dotted version strings (eg. 1.5.2) from a shell script?

For non-RPM version strings, try 'sort -V'.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel