Hi -
--- In "j.chitte" <> wrote:
>
> a little awk I had tested on x86 is returning nonsense on TSlinux,
> when I dug in to find out why I see awk squawk:
>
> $ tail -n1 '../htdocs/data/adc.data'| awk ' {printf "%s",$0}'
> 16:18:23 0.000 2.104 1.305 2.229 $
> $ tail -n1 '../htdocs/data/adc.data'| awk ' {printf "%s",$3}'
> 16:18:38 0.000 2.103 1.305 2.229 $
> $ tail -n1 '../htdocs/data/adc.data'| awk ' {printf "%s",$5}'
> 16:18:38 0.000 2.103 1.305 2.229 $
>
>
> $ tail -n1 '../htdocs/data/
> adc.data'
>
> 16:21:23 0.000 2.095 1.305 2.229 $
>
>
> So the first line ($0) is correct but the others garbage. This
> explains why I was getting NaN every where since it is failing to
> split the line.
>
> Any clues as to what is happening?
>
> TIA, /js
Is this with a debian distro (ie gnu awk) or with awk sym-linked to
busybox? If busybox, you could try a newer busybox, and / or trawl
through bugs.busybox.net. Looks like they have closed 20-30 awk bugs
in busybox in the last several years.
Also, you may have FS (field separator) defined differently between
machines.
Regards, ...... Charlie
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|