From b1d1ebb939bbc133cfa91c1fe3c41765e7efcbbb Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 29 Dec 2012 14:52:41 -0600 Subject: [PATCH] bin/ipaddr: Fix padding for UNAME=Linux --- bin/ipaddr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ipaddr b/bin/ipaddr index 0384885..9828343 100755 --- a/bin/ipaddr +++ b/bin/ipaddr @@ -42,7 +42,7 @@ case "$UNAME" in ifconfig $if_args | $awk "$awk_mask2cdr"' /^[^ ]+/ {iface=$1}; $1 == "inet" { printf("%-10s %s/%s\n", iface ":", substr($2,6), mask2cdr(substr($0,index($0,"Mask:")+5))) }; - $1 == "inet6" && /Scope:Global/ { printf("%-10s%s\n", iface ":", $3) }' + $1 == "inet6" && /Scope:Global/ { printf("%-10s %s\n", iface ":", $3) }' ;; SunOS) test -x "/usr/gnu/bin/awk" && awk=/usr/gnu/bin/awk -- 2.45.2