lsusb icon indicating copy to clipboard operation
lsusb copied to clipboard

fix parsing and remove stderr from output

Open flocsy opened this issue 2 years ago • 1 comments

flocsy avatar Feb 15 '23 21:02 flocsy

I have a simpler method to split here https://github.com/jlhonora/lsusb/pull/23

-devices=`echo "$rawlog" | egrep -B 2 -A 6 "Product ID" | sed 's/^--/#/'`
+devices=`echo "$rawlog" | sed -e '/:$/i\
+#'`

phuclv90 avatar Jun 12 '23 02:06 phuclv90