[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: awk manipulating string



Hugo Vanwoerkom wrote:
> Hi,
>
> How do you remove the last character of a string in awk?
>   

Did not test, but

substr(<string>, 0, length(<string>) - 1)

should work, or should be close to what you want.

-- 
Horngren's Observation:
	Among economists, the real world is often a special case.

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br
http://move.to/hpkb


Reply to: