Skip to content

Instantly share code, notes, and snippets.

@angelbladex
Created August 14, 2015 19:40
Show Gist options
  • Save angelbladex/42a1aeaeb81559aaef08 to your computer and use it in GitHub Desktop.
Save angelbladex/42a1aeaeb81559aaef08 to your computer and use it in GitHub Desktop.
Sort ip address from a file
#!/bin/bash
sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n addresses_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment