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)