AWK experts - how would I code around this in awk...

Doug Robinson dkrr at telus.net
Tue Mar 2 04:28:06 UTC 2010


Karl Auer wrote:
> On Sat, 2010-02-27 at 23:53 +0000, Steve Flynn wrote:
>   
>> On Sat, Feb 27, 2010 at 6:12 PM, Doug Robinson <dkrr at telus.net> wrote:
>>     
>>>> tr | fold fails as with "Invalid number". Manual page mages no
>>>> reference to a maximum value, oddly enough.
>>>>         
>>> I cannot find 'Invalid number' in either src.
>>>       
>> Pretty sure it was fold.
>>     
>
> If a library routine was used to parse an integer, the library may have
> issued the error message, or made it available. I.e., the error message
> may not be in the fold source itself.
>
> Regards, K.
>
>   
Well....
    I should have noticed that 32768 is mighty close to 2^15. One of 
them there
'magic numbers' that raise havoc in c programs!

    I'm guessing that your system uses 16 bit longs. Shutter!

    I am afraid I cannot help you - you are to far gone :-> I hope to have
better luck next time!

dkr





More information about the ubuntu-users mailing list