File: ipsort

package info (click to toggle)
pnscan 1.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92 kB
  • ctags: 56
  • sloc: ansic: 810; makefile: 99; sh: 1
file content (4 lines) | stat: -rwxr-xr-x 132 bytes parent folder | download | duplicates (7)
1
2
3
4
#!/bin/sh
#
# Sort a file using IPv4 addresses in at the beginning of each line
exec sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n "$@"