Im running Mac and i wanted to find vendor ID
, Product ID
, Serial Number
and if possible Mount Volume
of a pendrive. And ended up with system_profiler SPUSBDataType
, which displays whole bunch of list of various devices as paragraphs,.. I was looking forward to get only some details(vendor ID, Product ID, Serial Number) of pendrive. I tried grep, but only either one of the detail was able to get. the command i gave was
$ system_profiler SPUSBDataType | grep -i "Vendor ID:"
What should be the grep command (preferably a single line command) to get only those information of a particular device.