"ps -ef" command and exact matching

Hi Guys,
I am working in ksh88 and need the output of "ps -ef" command to give me the exact match of my pattern, for example:

$ ps -ef  'gen_sub'
     UID   PID  PPID NLWP  PGID   SID    STIME    TIME COMMAND
      op  9209  8249    1  9209  9209 14:52:57       00:00 /usr/bin/ksh /t1/bin/gen_sub
      op  6973  1278    1  6973  1278 15:07:12       00:00 gtail gen_sub_me
      op  3355  1278    1  3355  1278 15:06:43       00:00 gtail gen_sub

All I need that the above command would return only one line:

op  9209  8249    1  9209  9209 14:52:57       00:00 /usr/bin/ksh /t1/bin/gen_sub

All other lines in all possible combinations should be excluded.
Is there a way to do it? Thanks a lot for any advice... -A

ps -ef | grep "/sr/bin/ksh /t1/bin/gen_sub$"

But your pattern is not univoque...
Have you tried

ps -ef  'bin/gen_sub'

If you are on linux or solaris consider using pgrep for a better and exact match..."pgrep -lf gen_sub"