File: ipsort

package info (click to toggle)
pnscan 1.11-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 152 kB
  • ctags: 85
  • sloc: ansic: 1,118; sh: 154; makefile: 104
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 "$@"