07/08/02 09:30:59 T88fi8J/0
>>121
以下を xxx.rb として保存して
> ruby xxxrb < input.txt > output.txt
---
#!ruby -K
$KCODE="SJIS"
def plus_0x10(buff)
m = buff.match(/(0x[0-9a-f]{8})/i)
if m != nil
print m.pre_match
print sprintf("0x%08X", m.to_s.hex + 0x00000010)
plus_0x10(m.post_match)
else
print buff
end
end
# main
while (line = gets)
plus_0x10(line)
end