4

var may be double quoted:

    set var="Very long text" 

or without quotes:

    set var=Some_Text

I would like to get the unquoted text, i.e. Very long text in the first case and Some_Text in the second one.

How could I remove the double quotes, if exist ?

Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
  • Much easier is the following solution I found in Stackoverflow: [http://stackoverflow.com/a/5242166/1016343](http://stackoverflow.com/a/5242166/1016343) – Matt Nov 23 '12 at 10:13

1 Answers1

4

Have you tried this method?

See also: http://ss64.com/nt/syntax-esc.html

Olathe
  • 1,885
  • 1
  • 15
  • 23