How do I differentiate between uppercase and lowercase characters in a case statement?

I’m trying to revive my rusty shell scripting skills, and I’ve run into a problem with case statements. My goal in the program below is to evaluate whether a user-supplied string begins with a capital or lowercase letter: # practicing case statements echo “enter a string” read yourstring echo -e “your string is $yourstring\n” case…

Details

How do I get the `/dev/ttyUSB0` from `/dev/bus/usb/006/015`?

Short version: How, from device information such as /devices/pci0000:00/0000:00:13.1/usb6/6-3 and /dev/bus/usb/006/015, I get a path such as /dev/ttyUSB0 or /dev/serial/by-path/pci-0000:00:13.1-usb-0:3:1.0-port0? Detailed version: I have a script which detects that an USB device of a specific type (an Arduino) was plugged in. When the device is connected, it shows a bunch of data about it, such…

Details