From 0f71ac9724d37c43e56e112d1cd9f46de0fd7a17 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 8 Jun 2011 06:49:29 +0000 Subject: [PATCH] simplified and moved filters to sub not gsub --- inxi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 6857e2c..3247e8c 100755 --- a/inxi +++ b/inxi @@ -3784,7 +3784,8 @@ get_machine_data() } { 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(/ [ \t]+/, " ", $0) print $0