11.40. Exercise: Sort SNMP numbers

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...

Example 11-13. examples/regex/snmp.txt

1.2.7.6
4.5.7.23
1.2.7
2.3.5.7.10.8.9

If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed