On Sat, Oct 11, 2008 at 06:47:41AM -0500, Hugo Vanwoerkom wrote: > Hi, > > How do you remove the last character of a string in awk? Here's one way: awk 'BEGIN { x = "Hello!"; print substr(x, 0, length(x) - 1)}' Can't think of anything better quickly... HTH. Kumar -- Kumar Appaiah