I would like to define a Bash variable PART_ID as being equal to the UUID of the /dev/sdb1 partition. The closest I have gotten to the desired answer is the output of:
ls -ld /dev/disk/by-uuid/* | grep sdb1
which, for me, gives:
lrwxrwxrwx 1 root root 10 Mar 16 17:02 /dev/disk/by-uuid/d26c3e60-0cfb-4118-9dec-1f1819439790 -> ../../sdb1
which is not an acceptable value for me to set PART_ID to. Rather what PART_ID should equal is d26c3e60-0cfb-4118-9dec-1f1819439790.