mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
small tweaks
This commit is contained in:
parent
e8780766e1
commit
33c996f682
6
inxi
6
inxi
|
@ -209,9 +209,9 @@ print_screen_output()
|
||||||
|
|
||||||
remove_erroneous_chars()
|
remove_erroneous_chars()
|
||||||
{
|
{
|
||||||
## this removes newline and pipes
|
## this removes newline and pipes
|
||||||
## RS is input record separator
|
## RS is input record separator
|
||||||
## gsub is substitute;
|
## gsub is substitute;
|
||||||
gawk 'BEGIN { RS="" } { gsub(/\n$/,""); ## (newline; end of string) with (nothing)
|
gawk 'BEGIN { RS="" } { gsub(/\n$/,""); ## (newline; end of string) with (nothing)
|
||||||
gsub(/\n/," "); ## (newline) with (space)
|
gsub(/\n/," "); ## (newline) with (space)
|
||||||
gsub(/^ *| *$/, ""); ## (pipe char) with (nothing)
|
gsub(/^ *| *$/, ""); ## (pipe char) with (nothing)
|
||||||
|
|
Loading…
Reference in a new issue