Difference between revisions of "Assign cma list to variable"
From cpwiki.net
				
								
				
				
																
				
				
								
				
 (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...")  | 
			
Latest revision as of 22:04, 25 February 2013
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]}