| Newsgroups |
gmane.linux.debian.user |
| Message-ID |
<[email protected]> |
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.