simplified and moved filters to sub not gsub

This commit is contained in:
inxi-svn 2011-06-08 06:49:29 +00:00
parent ed94e1e867
commit 0f71ac9724

3
inxi
View file

@ -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