?

Log in

No account? Create an account

Previous Entry | Next Entry

Content of content of a variable !

Digest for today morning: use of ${!VARIABLE} , learnt from Navojit Dutta(UNIX forum)

$ cat
content
MYVAR=$1
DUMMY1="This is tricky"
DUMMY2=24
echo ${!MYVAR}


$
./content DUMMY1
This is tricky

$
./content DUMMY2
24
 

Profile

jaduks
Jadu Kumar Saikia

Latest Month

January 2008
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  
Powered by LiveJournal.com
Designed by chasethestars