On Tue, 8 May 2012, Gerry wrote:

> I'd get rid of the epensive bash call. :-)
>
> #! /usr/bin/awk -f
> BEGIN {printf("%.1f kg/m²\n", 703.06958*ARGV[2]/ARGV[1]^2)}


Thanks.  That will be much faster and easier on the system.  ;-)

Thanks also to you and Jason for pointing out that I forgot the newline. 
I always do that, but usually I catch it because I get some 
horrible-looking output.  I have a newline built into my prompt and I 
didn't notice that I was missing my empty line.

I didn't know I could write an awk script that way (awk shebang).  That's 
good to know.

Mike