#!/bin/sh export PATH=$PATH:/usr/bin/local echo "Looking for $1" _MYDISK=`diskutil list | grep "$1" | sed 's/ GB/GB/g' | awk '{print $6}'` echo "Mounting $_MYDISK" diskutil mount /dev/$_MYDISK