Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: insert line...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2206 of 2241
Post > Topic >>

Re: insert line once again

by Ed Morton <morton@[EMAIL PROTECTED] > Mar 27, 2008 at 08:04 AM

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.




 3 Posts in Topic:
insert line once again
Dieter Kraft <kraft@[E  2008-03-27 08:10:38 
Re: insert line once again
Ed Morton <morton@[EMA  2008-03-27 08:04:57 
Re: insert line once again
Dieter Kraft <kraft@[E  2008-03-27 18:21:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:11:48 CDT 2008.