I'm familiar with it. I did that on windows.
My solution was to just go through the alphabet. export("$A*",blahblah);export("$B*",blahblah);
Ahm, I think export can append to a file.
virtual void Server::Global::export ( searchString] [, fileName[, append] )
So to get it all in one file it'd be like:
export("$A*","base/allvars.txt");
export("$B*","base/allvars.txt",1);
export("$C*","base/allvars.txt",1);
...