Codice: Seleziona tutto
:~$ X="0bda:57b5"; lsusb -vd $X |egrep "$X|bcdUSB|iProduct|Class|wTerminalType|wWidth|wHeight" # Sintesi periferica USB avente chip-ID contenuto nella variabile $X
Couldn't open device, some information will be missing
Bus 002 Device 005: ID 0bda:57b5 Realtek Semiconductor Corp. USB Camera
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 [unknown]
iProduct 1 USB Camera
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
wTerminalType 0x0201 Camera Sensor
wTerminalType 0x0101 USB Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
wWidth 640
wHeight 480
wWidth 160
wHeight 120
wWidth 176
wHeight 144
wWidth 320
wHeight 240
wWidth 352
wHeight 288
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
ho notato che se digito
Codice: Seleziona tutto
X="0bda:57b5"; lsusb -vd $X |egrep "$X|bcdUSB|iProduct|Class|wTerminalType|wWidth|wHeight" | sort -u # Sintesi periferica USB avente chip-ID contenuto nella variabile $X
Couldn't open device, some information will be missing
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 [unknown]
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceSubClass 2 Video Streaming
Bus 002 Device 005: ID 0bda:57b5 Realtek Semiconductor Corp. USB Camera
iProduct 1 USB Camera
wHeight 120
wHeight 144
wHeight 240
wHeight 288
wHeight 480
wTerminalType 0x0101 USB Streaming
wTerminalType 0x0201 Camera Sensor
wWidth 160
wWidth 176
wWidth 320
wWidth 352
wWidth 640e se digito
Codice: Seleziona tutto
X="0bda:57b5"; lsusb -vd $X |egrep "$X|bcdUSB|iProduct|Class|wTerminalType|wWidth|wHeight" | uniq -u # Sintesi periferica USB avente chip-ID contenuto nella variabile $X
Couldn't open device, some information will be missing
Bus 002 Device 005: ID 0bda:57b5 Realtek Semiconductor Corp. USB Camera
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 [unknown]
iProduct 1 USB Camera
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
wTerminalType 0x0201 Camera Sensor
wTerminalType 0x0101 USB Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
wWidth 640
wHeight 480
wWidth 160
wHeight 120
wWidth 176
wHeight 144
wWidth 320
wHeight 240
wWidth 352
wHeight 288
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video StreamingQualcuno è in grado di dirmi in che modo devo scrivere il comando per eliminare le righe doppie senza mettere le altre righe in ordine alfabetico?
Ringrazio sin d'ora chi mi aiuterà.

