Replace string in Shell scripting

Hi,

I need to check if the starting or ending of the give string has a double quote and replace it with null.

e.g. Input
var="test string "is" string"
Output
var=test string "is" string

Please help in this regard

Thanks
Anand
[306 byte] By [anandjk1] at [2007-11-20 11:31:56]
# 1 Re: Replace string in Shell scripting
In what language are you attempting this? You did not specify.
PeejAvery at 2007-11-10 3:56:08 >
# 2 Re: Replace string in Shell scripting
Well he said shell scripting, however still need to know what shell.. bash, sh, csh?

Also, i'd need more information to help you, who is setting the var? Are you reading from standard in?

-Zetas
Zetas at 2007-11-10 3:57:08 >