michael@0: #!/usr/local/bin/perl -w michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: while() michael@0: { michael@0: if(/^#/) michael@0: { michael@0: print $_; michael@0: } michael@0: else michael@0: { michael@0: ($a, $b, $c,$d) = /^(....)(.)(..)(.*)$/; michael@0: print "0x" . $c . $b . "0x" . $a . $d . "\n"; michael@0: } michael@0: }