comparison bin/example/indirect.sh @ 693:c7309e7625ba

add indrect referencing example
author Jeff Hammel <k0scist@gmail.com>
date Wed, 02 Jul 2014 10:50:04 -0700
parents
children
comparison
equal deleted inserted replaced
692:80c47cc35f37 693:c7309e7625ba
1 #!/bin/bash
2
3 NAME=foo
4 PASSWORD=bar
5 IP_ID=91
6 ENV=prod
7
8 for i in NAME PASSWORD IP_ID ENV
9 do
10 echo "export $i=\"$(eval echo \$$i)\""
11 done