python3 - When using the lsusb command is there a why to get the divice name only? - Ask Ubuntu


when use lsusb command get:

bus 001 device 001: id 1d6b:0002 linux foundation 2.0 root hub bus 002 device 003: id 0e0f:0002 vmware, inc. virtual usb hub bus 002 device 002: id 0e0f:0003 vmware, inc. virtual mouse bus 002 device 001: id 1d6b:0001 linux foundation 1.1 root hub 

is there anyway device name i.e.

linux foundation 2.0 root hub vmware, inc. virtual usb hub vmware, inc. virtual mouse linux foundation 1.1 root hub 

lsusb | cut -c34- 

would show need.

$ lsusb bus 002 device 002: id 8087:8000 intel corp.  bus 002 device 001: id 1d6b:0002 linux foundation 2.0 root hub bus 001 device 002: id 8087:8008 intel corp.  bus 001 device 001: id 1d6b:0002 linux foundation 2.0 root hub bus 004 device 001: id 1d6b:0003 linux foundation 3.0 root hub bus 003 device 003: id 04f2:b3fd chicony electronics co., ltd  bus 003 device 001: id 1d6b:0002 linux foundation 2.0 root hub $ lsusb | cut -c34- intel corp.  linux foundation 2.0 root hub intel corp.  linux foundation 2.0 root hub linux foundation 3.0 root hub chicony electronics co., ltd  linux foundation 2.0 root hub 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User