Trying to edit my imaging script to have any machines with more than 3.5 gig of ram to use a certain image.

memsize=$(free | awk '/^Mem:/{print $2}')

if [$memsize -gt "3500000"]; then
zisedit -r
zisedit -c
img rp 10.1.50.102 w764sysprep
finished
fi

I think it has something to do with comparing memsize, it errors out on that line.