nwo4life,
Here is a simple program I wrote to do exactly what you want. I programmed it for you so it runs interactively, but it is really simple and can be made to run without interaction with little effort. If you need help doing this, I can do it for ya..
#!/usr/bin/ksh
echo "Enter...