Horje
passing variables into array Code Example
passing variables into array
resnuml=`cat h2.pdb | awk '{print $5}' | uniq` # get uniq pattern like 
echo resnuml : 10 11 12 13 14 15

Aresnum=( $resnuml ) # assigning above values into array

echo length : ${#Aresnum[@]}   # Array length. = 6
echo resnums :  ${Aresnum[@]}   # = 10 11 12 13 14 15
echo resnum 0:  ${Aresnum[0]}  # = 10




Shell

Related
install NDIS driver fedora Code Example install NDIS driver fedora Code Example
attemting to start apache server Code Example attemting to start apache server Code Example
ip address regex validate cmd Code Example ip address regex validate cmd Code Example
how to install apt on chromebook Code Example how to install apt on chromebook Code Example
install reachrouter Code Example install reachrouter Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11