mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
some more awk cleanup
This commit is contained in:
parent
b5bffea71f
commit
32a9957109
3
inxi
3
inxi
|
@ -1194,7 +1194,8 @@ get_networking_data()
|
||||||
gsub(/davicom semiconductor/, "Davicom", nic)
|
gsub(/davicom semiconductor/, "Davicom", nic)
|
||||||
gsub(/,/," ", nic)
|
gsub(/,/," ", nic)
|
||||||
gsub(/'"$A_NORMAL_BANS"'/, "", 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.
|
# The doublequotes above are necessary because of the pipes in the variable.
|
||||||
eth[nic]++
|
eth[nic]++
|
||||||
while (getline && !/^$/) {
|
while (getline && !/^$/) {
|
||||||
|
|
Loading…
Reference in a new issue