ts-7000
[Top] [All Lists]

[ts-7000] awk squawk

To:
Subject: [ts-7000] awk squawk
From: "j.chitte" <>
Date: Mon, 31 Mar 2008 16:25:41 -0000
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



------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU