2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 5904
/ 3 Years ago, mon, may 17, 2021, 12:18:54
I am working on a script to check if volume group vg0 exist. The problem is that it return Found even when I delete the volume group. So very unsure what is wrong.
#!/bin/bash
if vgdisplay | grep 'vg0' | awk '{print $3}'; then
echo "Found"
else
echo "Not found"
fi
More From » 12.04