#!/usr/bin/ksh93 if [ "$1" == "-?" ] then cat << TEXT memsize returns in Mb the physical memory of the machine TEXT exit fi # ----------- exe ---------------- v=`lsattr -El sys0 -a realmem |awk '{ print $2}'` ((v=($v/1024))) printf "%s Mo\n" $v