sed ?
otherwise good idea !