File: ipsort

package info (click to toggle)
pnscan 1.12+git20180612-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 164 kB
  • sloc: ansic: 1,149; 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 "$@"