How to lookup disk "Device Identifier" from "Device / Media Name"?
The following will output the device node for any volume with a matching name by replacing &lt;string&gt; with the Device/ Media Name you're searching for. 

for d in /dev/disk*; do
    if [ `diskutil info $d | grep -c &lt;string&gt;` == 1 ]; then
        diskutil info $d | grep "Node"
    fi
done


One-liner

$ for disk in /dev/disk*; do [ `diskutil info $disk | grep -c '&lt;string&gt;'` == 1 ] &amp;&amp; diskutil info $disk | grep Node; done


BTW, on my MacBook Pro I have two "drives" with the same device name as they are two volumes on an APFS drive so some people reading this may have similar happening. I also don't have a 10.7 Mac available to test it, but it doesn't rely on any fancy shell stuff so should work fine. It certainly works on 10.12 and 10.13.