i am having a statement like this
source "../version.cmd" in a file called as output.cmd .
I want that above statement is replaced by this statement
source ../version.cmd .
i had tried with this command in script
perl -pi -e 's/source \"../source ../g' output.cmd
but it removes only the " which occur first and the resuting string becomes
source ../version.cmd" . i want to remove last " also using same script.