A simple 'awk' program using user-defined functions:Quote:> Is it possible to have functions on awk. If it is could anyone give me an
> example on how to use it.
print "Hi there";
print "Bye there";
I hope this helps.Quote:}
> >Is it possible to have functions on awk. If it is could anyone give me an
> >example on how to use it.
> Yes it is possible, unless you use an old awk like the one in Solaris.
> If you are in Solaris, use nawk, not awk. The man page should say
> something about functions.
Opinions expressed are my own and not necessarily those of my employer.
Anyone have, or know where I can find, an
awk function that converts hex values
that I find in a text file to decimal numbers
so I can do math on the numbers?