Linux shell get device id from user input
问题 I am working on an install script for a program that needs the device id from lsusb in it's configuration so I was thinking of doing the following: $usblist=(lsusb) #put the list into a array for each line. #use the array to give the user a selection list usinging whiptail. #from that line strip out the device id and vender id from the selected line. Sorry I haven't gotten very far with my code but I am stuck on this and have no idea how to do what I would like to do. Please can someone help.