As the following example:
#! /bin/bash
usbId=$(lsusb | cut -d ' ' -f 6)
the $usbId
is a multi line string which contains all usb devices on my computer. And I want to pick-up one of these line. Just like:
echo ${usbId[1]} # Don't work
In what way I can do that?
Thanks!