Command line util to sort version numbers contained within strings in each line (written in Python)