small bug fix in awk, now will output whole usb line

This commit is contained in:
inxi-svn 2009-02-18 06:57:28 +00:00
parent 7fd903ca68
commit 10f94c950f

2
inxi
View file

@ -1405,7 +1405,7 @@ get_audio_data()
usb_data=$( lsusb -v 2>/dev/null | grep "$usb_id" ) usb_data=$( lsusb -v 2>/dev/null | grep "$usb_id" )
usb_data=$( gawk '{ usb_data=$( gawk '{
gsub( /,/, " ", $0 ) gsub( /,/, " ", $0 )
for( i=7; i < NF; i++ ) { for( i=7; i <= NF; i++ ) {
printf( $i " " ) printf( $i " " )
} }
}' <<< "$usb_data" ) }' <<< "$usb_data" )