There are so many problems with this script I don't know where to start. I tried to correct it and came to the conclusion that it would be easier to rewrite it from scratch.
Have a look at a AWK tutorial - http://www.grymoire.com/Unix/Awk.html seems to cover the basics pretty well.
shibblez
Junior Poster in Training
72 posts since Oct 2010
Reputation Points: 15
Solved Threads: 6