#!/bin/bash VOLUME_ID="3c83e0f2-3a89-43bc-bf36-bb65168c2911" VOL_ID="blkid /dev/$1|awk 'BEGIN { FS = "\"" } ; { print \$2 }'" echo ${VOL_ID} ii=`$VOL_ID` echo $ii ## <- must return a volume id string value # the scope is compare VOL_ID with VOLUME_ID string (must be the same)