I have a Nabaztag/tag

I have received my Nabaztag/tag just a day ago, and it is a cute little thingie. At-ten-tion! What can it do? Actually, not much. It is a wireless device (client) which access Violet’s Nabaztag servers to get its commands. You, theoretically, cannot hijack the session and use it directly over LAN, but you must go…

|

Bash – Variable indirection – Using variable contents as a(nother) variable name

This was a tricky action. Assume I have a list of variables, obtained by an external source: var1=a var2=b var3=c I cannot use loop and in it the phrase ${var$i} (where i is the integer counter). It just doesn’t work. I used this instead to assign the values to an array: var[$i]=$(eval echo "${var${i}}") That…