Hello!
I'm capturing text then echoing it to ALL CAPS like this, which proves the command works.
read diskName
echo $diskName | tr [a-z] [A-Z]
The goal is to pass this capitalized text to:
sudo diskutil partitionDisk /dev/diskn MBR fat32 "$diskName" 0b
However! My trouble is passing the ALL CAPS text to the diskutil command. So I tried:
$diskName=`"$diskName" | tr [a-z] [A-Z]`
Here's the whole piece:
read diskName
$diskName=`"$diskName" | tr [a-z] [A-Z]`
sudo diskutil partitionDisk /dev/diskn MBR fat32 "$diskName" 0b
Any thoughts?