Search for '{{search_term}}'

Exercise: sort SNMP numbers

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

Given a file with SNMP numbers (one number on every line) print them in sorted order comparing the first number of each SNMP number first. If they are equal then comparing the second number, etc...

Actually the format is called ASN 1.

examples/data/snmp.txt

1.2.7.6
4.5.7.23
1.2.7
1.12.23
2.3.5.7.10.8.9 

Tools

Solutions

Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus