I think your best bet is post-processing - that just takes a simple
Python script. There are no vector variables in LAMMPS, other
than per-atom variables, which isn't what you want.
Re: file overwrite - we could add an append option to the fix ave
commands. The fix print and dump commands have it.
Steve