File: ipsort

package info (click to toggle)
pnscan 1.11-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 168 kB
  • ctags: 85
  • sloc: ansic: 1,115; sh: 154; makefile: 101
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 "$@"