Assign cma list to variable
From cpwiki.net
Assign cma list to an array variable for use in a script
check point command:
mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 " " }'
bash example:
assign to variable
CMA_LIST=$(mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 " " }')
access the first variable via index 0
${CMA_CMA[0]}