From: <pl...@pi...> - 2008-03-31 22:30:00
|
On Mon, 31 Mar 2008 23:46:40 +0200, Thomas Sefzick <t.s...@fz...> wrote: > >> system "tail -n1 '../htdocs/data/adc.data'| awk 'format= \" c3=%g\n >> c4=%g\n c5=%g\n\" {printf format,$3,$4,$5}' >temps.tmp " > > use \\n : > > system "tail -n1 x11.opt |awk 'format= \" c3=%g\\n c4=%g\\n c5=%g\\n\" > {printf format,$3,$4,$5}' >temps.tmp" That's one of the many things I tried today which failed. Hwvr, it does work as you suggest so it must have been compounded by another problem (like a buggy Busyborks version of awk !) I shall sleep better tonight having cracked that last problem. Thanks for you help. Peter. |