1 2 3 4 5 6 7 8
@echo off set OUTFILE=base.mlv_s.part if exist %OUTFILE% del %OUTFILE% gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" variantRename.lst >> %OUTFILE%