Monday, November 3, 2008

Ceiling in awk

function ceiling(x)
{
return (x == int(x)) ? x : int(x)+1
}

Stolen from link