File: 43_fix-sort-plus-column-usage-in-arp2ethers

package info (click to toggle)
arpwatch 2.1a15-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,988 kB
  • sloc: sh: 3,047; ansic: 2,811; makefile: 90; awk: 90; perl: 15
file content (17 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix no more working "sort +<n>" syntax in arp2ethers
 (Yes, the "2" needs to be replaced with at "3". See
 https://en.wikipedia.org/wiki/Sort_(Unix)#Columns_or_fields)
Author: Axel Beckert <abe@debian.org>
Bug-Debian: https://bugs.debian.org/545669

--- a/arp2ethers
+++ b/arp2ethers
@@ -28,7 +28,7 @@
 	exit 1
 }
 
-sort +2rn $FILE | \
+sort -rnk3 $FILE | \
     awk 'NF == 4 { print }' | \
 # 1999-04-12	KELEMEN Peter <fuji@debian.org>
 #    awk -f p.awk | \