1 2 3 4 5 6 7 8
#!/bin/perl -- # -*- Perl -*- # Charset hacking... while (<>) { s/\&\#(\d+);/sprintf("\\U-%04X;", $1)/egs; print; }