lsvg -o|while read vg;
do echo ==================;
echo $vg :;
echo ==================;
echo;
lsvg -l $vg|tail +3| awk '{ print $1 }'|while read lv;
do
echo ------------------------------------------------------------;
lslv -m $lv;
echo ------------------------------------------------------------;
echo ;
done;
done > ficherodesalida.txt
do echo ==================;
echo $vg :;
echo ==================;
echo;
lsvg -l $vg|tail +3| awk '{ print $1 }'|while read lv;
do
echo ------------------------------------------------------------;
lslv -m $lv;
echo ------------------------------------------------------------;
echo ;
done;
done > ficherodesalida.txt