thank you frank_rizzo & ghostdog74
syntax-wise the code works. but...the wc is counting 1 when its supposed to count 0. this code is a part of a script that is supposed to weed out invalid users. if the $uname is invalid then there will be no processes running under that user. i thought of adding grep -v grep and the count is now 0. but that doesn't make sense.
thanks again.