how to execute a shell script with variable

Hi I got a simple question, I want to write a shell script where I input the variable when I execute the script

for example

./script.sh var1
 

where it will execute script.sh using var1 as the variable, which is used in the script.

How do I do that?

Thanks
Robert

${!1}

thanks for your reply.

Can you be more specific? I am a newbie.....

Thanks

[root@node3 ~]# cat test.sh 
#!/bin/bash

func()
{
   echo '${1}='${1}
   echo '${!1}='${!1}
}

var=3

func var
[root@node3 ~]# bash test.sh 
${1}=var
${!1}=3

What you are asking is called positional parameters.
To be used by a shell just give its position, but in your case - only one
its just using the parameter $1

e.g.

1ra:/home/vbe $ cat found
WHAT=$1
find . -name "$WHAT" #
# find . -name "$1" # works also (HPUX)
#
1ra:/home/vbe $ found titi
./titi
./test/samples/wks/titi
./samples/titi