$result=`vxdisk list | grep $group | wc -l | sed 's/ *//'`; # can be replaced by $result = grep /\Q$group/, `vxdisk list`; # to remove dependency on the systems grep/wc/sed # and the sed was not needed as ' 38' == '38' when # perl gets ahold of it.
In reply to Re: First Unix Admin Script - Request for Constructive Critisism
by zengargoyle
in thread First Unix Admin Script - Request for Constructive Critisism
by D.Millin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |