help with ftp script

Hello,
I am trying to automate an ftp process, but the password contains a dollar sign $. How can I keep that $ symbol from being misintepreted by the shell script? I created a simple test script.
#!/bin/sh -x
password="test$pwd"
echo $password

Here is the output.
+ password=test
+ echo test
test

Thank you in advance...

Have you tried "test\$pwd" ?

-----Post Update-----

Why dont you use a .netrc file?

Thank you for the quick reply! That did the trick! :b:
#!/bin/sh -x
password="test\$pwd"
echo $password

Here is the output
+ password=test$pwd
+ echo test$pwd
test$pwd