mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
simplified and moved filters to sub not gsub
This commit is contained in:
parent
ed94e1e867
commit
0f71ac9724
3
inxi
3
inxi
|
@ -3784,7 +3784,8 @@ get_machine_data()
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
gsub(/'"$BAN_LIST_NORMAL"'/, "", $0)
|
gsub(/'"$BAN_LIST_NORMAL"'/, "", $0)
|
||||||
gsub(/,|To Be Filled By O.E.M.|Not Available|System manufacturer|System Product Name|System Version|N\/A/, " ", $0)
|
gsub(/,/, " ", $0)
|
||||||
|
sub(/To Be Filled By O.E.M.|Not Available|System manufacturer|System Product Name|System Version|N\/A/, "", $0)
|
||||||
gsub(/^ +| +$/, "", $0)
|
gsub(/^ +| +$/, "", $0)
|
||||||
gsub(/ [ \t]+/, " ", $0)
|
gsub(/ [ \t]+/, " ", $0)
|
||||||
print $0
|
print $0
|
||||||
|
|
Loading…
Reference in a new issue