Wednesday, 29 April 2015

shell - Indirect variable references


KSH
       i = 10
       var_ref=variable_sequence _$i
       eval  pointer_to_val=\$$var_ref

BASH
      i = 10
       var_ref=variable_sequence _$i
       pointer_to_val=${!var_ref}

Total Pageviews

Popular Posts