lsvg |grep -v rootvg | while read a
do
lsvg -l $a | awk ‘{print $7}’| awk ‘{if(NR>2)print}’ |while read b
do
/usr/sbin/chfs “-Ayes” “$b”
done
done

1 COMMENT

  1. cat script.ksh
    lsvg |grep -v rootvg | while read a
    do
    lsvg -l $a | awk ‘{print $7}’| awk ‘{if(NR>2)print}’ |while read b
    do
    /usr/sbin/chfs “-Ayes” “$b”
    done
    done

    error i m getting
    [nbaxa340:/tmp] ./script.ksh
    ./script.ksh: syntax error at line 3 : `(‘ unexpected

LEAVE A REPLY

Please enter your comment!
Please enter your name here