Parent child Relation !! using awk/sed ???

tempfind.txt file has:
t2589vg 888898 336008 09:15:55 -ksh
mqsiadm 1421774 888898 09:16:48 -ksh

I am searching using 1421774 in the above file tempfind.txt and and trying to get the no. i.e. 888898 [in Blue]. Based on this no. i have to get the first line, where the same no. is there [in Red]. The nos. in Blue has to match with the no. in Red.

That is the process "-ksh" with user id t2589vg that is parent process to "-ksh" of user mqsiadm. And I am trying to get the name of the parent process through its child process id.

How can I do this using awk/sed ???

Please let me know , asap.
Thanks.

Varun.:b: