http://www.cpwiki.net/index.php?title=Assign_cma_list_to_variable&feed=atom&action=historyAssign cma list to variable - Revision history2024-03-28T22:47:52ZRevision history for this page on the wikiMediaWiki 1.21.10http://www.cpwiki.net/index.php?title=Assign_cma_list_to_variable&diff=6&oldid=prevNighthawk: Created page with "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 variabl..."2013-02-25T22:04:56Z<p>Created page with "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 variabl..."</p>
<p><b>New page</b></p><div>Assign cma list to an array variable for use in a script<br />
<br />
check point command:<br />
mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 " " }'<br />
<br />
bash example:<br />
<br />
assign to variable<br />
CMA_LIST=$(mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 " " }')<br />
<br />
access the first variable via index 0<br />
${CMA_CMA[0]}<br />
<br />
[[category:scripting]]</div>Nighthawk