jlhonora / lsusb

lsusb command for Mac OS X
MIT License
368 stars 49 forks source link

fix parsing and remove stderr from output #22

Open flocsy opened 1 year ago

phuclv90 commented 1 year ago

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\
+#'`