---
title: "Export existing SIL aliases"
canonical: "https://support.appfire.com/space/PSJ/805604150/Export%20existing%20SIL%20aliases"
format: markdown
---
> Macro (aura-html)

> Macro (button-handy)



> Macro (excerpt)
> 
> Export a CSV formatted list of all existing SIL aliases

```
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);
        }
    }
}
```