blkid and shell usage.

[email protected]
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.