source:
npl/internetserver/djbdns/patches/0003-dnstracesort.sh-don-t-use-deprecated-number-sort.diff
Last change on this file was 37aaf89, checked in by , 3 years ago | |
---|---|
|
|
File size: 697 bytes |
-
dnstracesort.sh
Description: dnstracesort.sh: don't use deprecated "+number" sort(1) option dnstracesort contained the line "sort -t: +0 -2 +4 +3 -4 +2 -3" which uses the deprecated sort field selection. This commit changes the options to "-k": "sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4". Author: Shai Rosenfeld <shaiguitar@gmail.com> Date: Wed, 30 Sep 2009 18:50:32 +0000 Last-Update: 2020-07-26 diff --git a/dnstracesort.sh b/dnstracesort.sh index e57359c..108ef2f 100644
a b awk -F: ' 12 12 } 13 13 print 14 14 } 15 ' | sort -t: +0 -2 +4 +3 -4 +2 -3| uniq | awk -F: '15 ' | sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4 | uniq | awk -F: ' 16 16 { 17 17 type = $1 18 18 q = $2
Note: See TracBrowser
for help on using the repository browser.