output tweaks

This commit is contained in:
inxi-svn 2008-11-14 01:41:56 +00:00
parent 3991b6efa1
commit 52829c43c7

5
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.5.27-b-1-t-2 #### version: 0.5.27-b-1-t-3
#### Date: November 13 2008 #### Date: November 13 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
@ -1023,7 +1023,8 @@ get_audio_data()
A_AUDIO_DATA[$alsa_index]=$( gawk '{ A_AUDIO_DATA[$alsa_index]=$( gawk '{
{ IGNORECASE=1 } { IGNORECASE=1 }
# some alsa strings have the build date in (...) # some alsa strings have the build date in (...)
gsub( "Driver | [(].*[)]","",$0 ) # alsa remove trailing .
gsub( "Driver | [(].*[)]|\.$","",$0 )
gsub(/,/, " ", $0) gsub(/,/, " ", $0)
gsub(/^ +| +$/, "", $0) gsub(/^ +| +$/, "", $0)
gsub(/ [ \t]+/, " ", $0) gsub(/ [ \t]+/, " ", $0)