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()
|
||||
{
|
||||
## 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)
|
||||
|
|
Loading…
Reference in a new issue