From 33c996f682e075eb83bb85a8a8d109c3258bfe21 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Oct 2008 07:28:50 +0000 Subject: [PATCH] small tweaks --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 140ded9..1d0b14c 100755 --- a/inxi +++ b/inxi @@ -209,9 +209,9 @@ print_screen_output() remove_erroneous_chars() { -## this removes newline and pipes -## RS is input record separator -## gsub is substitute; + ## this removes newline and pipes + ## RS is input record separator + ## gsub is substitute; gawk 'BEGIN { RS="" } { gsub(/\n$/,""); ## (newline; end of string) with (nothing) gsub(/\n/," "); ## (newline) with (space) gsub(/^ *| *$/, ""); ## (pipe char) with (nothing)