Just a quick question,
I've come accross a problem while writing a shell script (korn). Basically we don't have korn93 on most of our servers, so can't use the built-in floating point math to do things like work out percentages.
That leaves me with finding another way - now from what I have found on the net I can use AWK to do this? Despite having done a fair bit of work with unix before I have not yet used AWK, and while i'm sure I should learn how to use it I don't have the time at the moment - so would anyone please be able to show me how to calculate a simple percentage using it?
I have the values stored as variables in my script already, just need to evaluate them to a percentage now =)
any help would be appreciated - a different solution or an explanation of how to use awk to do it would be great.
cheers
spud/pete
edit: oh and also - this needs to be a reasonably standard unix component that I use, not perl for example (it's not set up on some of our servers) That's part of the problem, given the choice the whole script would have been done in perl lol