Re: [ILUG] Bourne[-again] shell

From: Peter Flynn (pflynn at domain imbolc.ucc.ie)
Date: Fri 15 Oct 1999 - 12:32:22 IST


   #!/bin/sh
   # This will work with bash, ksh or even old sh.
[...]
           var=`eval echo \$s$counter`
           echo "Value is $var"

I'd forgotten about eval. Cool, thanks.

///Peter



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:44 GMT