Thanks for the replies. They helped me a lot.
I thought about matching everything between "/" and "." too, but I was a bit worried that even the "." might get cut off (not to mention that I am no ace when it comes to
sed). Hopefully that won't occur. I will look more closely at ps -awww in the future as I run all my scripts on Solaris.
Thanks once again, you guys are awesome.