tree
0. create:
tree > tree.txt
1. regex to clean lines up to the extension (leaving only last 3 chars, without the preceeding '.')
.*(?=\.).
2. clean extra newlines
\n\n
to\n
3. regex to replace multiple duplicate lines with one single
^(.*)(\r?\n\1)+$
to\1