On 3/27/2008 2:10 AM, Dieter Kraft wrote:
>>Hi,
>>
>>thanks for your previous help, pk and Stephane.
>>
>>Now I have the problem to append a line
>>to my 1000 model files *.mod
>>which all have the entry
>>solve;
>>as their hitherto last line.
>>The last line (after the solve; line) shall now look like
>>printf : "%s %5i %5i %5i %5i %10.5f %10.5f \n", *, N, M, IERR, ITER, F,
_solve_time >> TABLE.TEX;
>>
>>where the * in this line should be the * from *.mod above.
>>
Assuming I don't need any context from a previous post:
base=FILENAME
sub(/.mod$/,"",base)
printf "%s %5i %5i %5i %5i %10.5f %10.5f \n", base, N, M, ...
Ed.


|