File: ipsort

package info (click to toggle)
pnscan 1.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 424 kB
  • sloc: sh: 1,270; ansic: 1,220; makefile: 215
file content (4 lines) | stat: -rwxr-xr-x 134 bytes parent folder | download | duplicates (2)
1
2
3
4
#!/bin/sh
#
# Sort a file containing IPv4 addresses at the beginning of each line
exec sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n "$@"