Hey all,

Please consider the following scenario:

Code:
clear
set obs 2
gen id_genbank = ">Seq" + " -j " + `"""' + "bla" + `"""' in 1
replace id_genbank = ">Seq" + " -j " + "bla" in 2
export delimited using test.txt, delimiter(tab) replace

*to display where the file was saved
pwd
Can someone explain why the observation 1 gets exported with four extra quotes in the .txt file, as
Code:
">Seq -j ""bla"""
despite being shown in Stata browse as
Code:
>Seq -j "bla"
, given that I'm not specifying the option "quote" on the command export? I fail to see why does the observation 2 gets exported exactly the way it is shown on Stata browse, while observation 1 receives extra quotes.

In the end, I would like to export the observations in a manner such that they look like
Code:
>Seq -j "bla"
when shown in the txt file. Any ideas on achieving that?

Cheers