Skip to content

bash script to compare (at least 3-part ) semantic versions, returning 'greater', 'less', or 'equal'

License

Notifications You must be signed in to change notification settings

oneeyedziggy/semanticVersionComparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

semanticVersionComparison

bash script to compare semantic versions, returning 'greater', 'less', or 'equal'. limited to 3-parts less than 1000000 each... but easily modable to more... the limitation is bash's integer comparison max combined w/ the comparison mechanism... it currently 0-pads each of 3 parts to 6 chars then cat's them, and 999999999999999999 appears to be the max on my system, and fits my current requirement

About

bash script to compare (at least 3-part ) semantic versions, returning 'greater', 'less', or 'equal'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages