>>887
$ cat my-cpp
#! /bin/sh
awk 'BEGIN{hoge=1}
{while(match($0, /\<HOGE\>/)>0) {sub(/\<HOGE\>/, sprintf("%d", hoge)); hoge++}}
{print $0}'