Solved Help with shell variables

I can't work out how to specify this:-
Code:
export USB="da0"
gpart destroy -F $USB
gpart create -s mbr $USB
gpart add -t fat32 $USB
gpart set -a active -i 1 $USB
newfs_msdos -F32 /dev/$USBs1

The gpart cmds work but the newfs_msdos cmd doesn't resolve /dev/$USBs1 to /dev/da0s1.
What are the magic symbols I need around $USB for it to resolve? I've tried \ () "" in various combinations unsuccessfully so far.
 
Back
Top