If you still wanted to obtain them all, you could do this:
function saveAllVariables(%directory) // usage saveAllVariables("config/variables/");
{
if(getSubStr(%directory, strLen(%directory)-1, 1) !$= "/")
%directory = %directory @ "/";
%alphabet = "abcdefghijklmnopqrstuvwxyz";
for(%i = 0; %i < 26; %i++)
{
%character = getSubStr(%alphabet, %i, 1);
%search = "$" @ %character @ "*";
%file = %directory @ %character @ ".txt";
export(%search, %file);
}
echo("Saved all files to: " %directory @ "[a..z].txt");
}
It may not be the easiest solution to read through them but as long as you don't have 5,000 variables under one letter it will work, and they'll be well sorted too.