File: ipsort

package info (click to toggle)
pnscan 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 168 kB
  • ctags: 87
  • sloc: ansic: 1,128; sh: 154; makefile: 64
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 "$@"