From 32a9957109c2129207bdd0d2b87e4c6cb0024f20 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 5 Nov 2008 23:39:07 +0000 Subject: [PATCH] some more awk cleanup --- inxi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index c5a36b9..9abeea9 100755 --- a/inxi +++ b/inxi @@ -1194,7 +1194,8 @@ get_networking_data() gsub(/davicom semiconductor/, "Davicom", nic) gsub(/,/," ", nic) gsub(/'"$A_NORMAL_BANS"'/, "", nic) - gsub(/ [ ]+/," ", nic); gsub(/^ +| +$/,"", nic) + gsub(/ [ ]+/," ", nic) + gsub(/^ +| +$/,"", nic) # The doublequotes above are necessary because of the pipes in the variable. eth[nic]++ while (getline && !/^$/) {