Hi,
This shell function is a prototype.
Test() { \
workingVolume=40d81969-8f9d-4964-b214-87bcf273192a
echo "working volume asigned a value; now try blkid."
if ! blkid -t UUID="$workingVolume" > /dev/null; then
printf "workingVolume not found.\n"
else
printf "workingVolume found.\n"
fi
echo "Now try to catch the name of the device."
blkid -t UUID="$workingVolume" | cut -d':'
}
The if statement gives the result I expect.
I miss the syntax to make the last statement work.
Thx, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 778 508 0020 <= decommissioning
Bcc: peter at e a s t h o p e dot c a
projects: en.wikibooks.org/wiki/User:PeterEasthope