Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Export+existing+SIL+aliases+-+1222738174
widthauto

Excerpt

Export a CSV formatted list of all existing SIL aliases

Code Block
struct _alias {
    string name;
    string id;
}

runnerLog("name,id");

string fileContent = readFromTextFile("../kepler/sil.aliases");
string [] fc = split(fileContent, "\r");

for(string a in fc) {
    if(!startsWith(a, "#")) {
        if(contains(a, "=")) {
            string line = replace(a, "\n", "");
            line = replace(line, "\r", "");
            
            _alias a = split(line, "=");
            runnerLog(a.name + "," + a.id);
        }
    }
}
We've encountered an issue exporting this macro. Please try exporting this page again later.