Shell Parameter...

I am trying to get the value of the user id (uid), which is the shell parameter.Then, read the /etc/passwd and keep the lines where the uid is superior to the parameter and write this line in a new file. But I am not getting what I wanted. Perhaps there is a problem with the Syntax below :-

#!/usr/bin/ksh
uid=${uid:-/etc/passwd}
/etc/passwd/read
$ cut -d: -f1 < uid gt $$

Can anyone help me, please.

Thanks,
Marconi.

is this what you are trying to do?

grep $UID /etc/passwd