How To Add Two Double Quotes Inside A Variable?

rajendran

Member
i need to pass the variable to shell script fot ftp process.
the password has some redirection () characters like T563()_g563.
from command line i can use separator lke 't563\(\)_g563' and it works fine.
But when i try to run using the script and .p i need to have value as "'t563\(\)_g563'" two double quotes to fix the syntax error near unexpected token _g565.

please let me know how to have value as "'t563\(\)_g563'"
 

Cringer

ProgressTalk.com Moderator
Staff member
I think the problem is actually the \ not the quotes. \ is an escape character in some cases (Unix I think). Anyway, replace the \ with ~\ in both cases and try again.
 
Top