Shell Script to Unmount Multiple Hard Drives?

I found the answer, explained here :