The problem is that in case if $string contains characters like $ or @ or % then these values are getting replaced by the perl keys. for example if $string is abc$ds then the value being passed is abcs. The value of $d is being getting replaced. I am baffled like how are we going to pass this variable. Please suggest Thnanx in advance`test.sh "$string"`;
In reply to passing a command line argument by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |