<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.cpwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.cpwiki.net/index.php?action=history&amp;feed=atom&amp;title=Assign_cma_list_to_variable</id>
		<title>Assign cma list to variable - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.cpwiki.net/index.php?action=history&amp;feed=atom&amp;title=Assign_cma_list_to_variable"/>
		<link rel="alternate" type="text/html" href="http://www.cpwiki.net/index.php?title=Assign_cma_list_to_variable&amp;action=history"/>
		<updated>2026-04-29T10:07:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.10</generator>

	<entry>
		<id>http://www.cpwiki.net/index.php?title=Assign_cma_list_to_variable&amp;diff=6&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;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 &quot; &quot; }'  bash example:  assign to variabl...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.cpwiki.net/index.php?title=Assign_cma_list_to_variable&amp;diff=6&amp;oldid=prev"/>
				<updated>2013-02-25T22:04:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Assign cma list to an array variable for use in a script  check point command:  mdsstat | grep CMA | sed -e &amp;#039;s/|//g&amp;#039; | awk &amp;#039;{printf $2 &amp;quot; &amp;quot; }&amp;#039;  bash example:  assign to variabl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Assign cma list to an array variable for use in a script&lt;br /&gt;
&lt;br /&gt;
check point command:&lt;br /&gt;
 mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 &amp;quot; &amp;quot; }'&lt;br /&gt;
&lt;br /&gt;
bash example:&lt;br /&gt;
&lt;br /&gt;
assign to variable&lt;br /&gt;
 CMA_LIST=$(mdsstat | grep CMA | sed -e 's/|//g' | awk '{printf $2 &amp;quot; &amp;quot; }')&lt;br /&gt;
&lt;br /&gt;
access the first variable via index 0&lt;br /&gt;
 ${CMA_CMA[0]}&lt;br /&gt;
&lt;br /&gt;
[[category:scripting]]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>