... that formats a text file for, um, legibility.
Just cat a file through it and voila! It's pretty.
#!/usr/local/bin/perl -n
@x = ( { Begin => "{", End => "}" }, "(?:Attribute|Motion|Transform|Wo
+rld|Frame)" );
$i-- if(/^\s*$x[1]End/ && $i);
/^\s*\#/?s/^\s*//:s/^\s*/" "x(4*$i)/e;
s/^(\s*$x[1](Begin|End).*)$/$1.(m|\#[\{\}]$|?"":" #$x[0]{$2}")/e;
print;
$i++ if(/^\s*$x[1]Begin/);
Any ideas? I figure that I should be able to do something that combines the two regular expression lines, then do something else to mask the data, but I'm new to the whole obfuscation thing. :^)
Thanks!
hoaf