On 01/07/26 at 19:16, Greg Wooledge wrote:
It looks like what you were trying for was cut -d: -f1
In addiction I'd suggest to use the so called "exit status variable: $?" in the "if ; then" statement:
... echo "working volume assigned a value; now try blkid." blkid -t UUID="$workingVolume" >/dev/null 2>&1 if [ $? -ne 0 ] ; then printf "workingVolume not found.\n" else ... it makes the code more readable, IMHO. -- Franco Martelli

