Need help with text validation

Hi,

I am posting this to get some help from expert users. Any idea is appriciated.

http://www.unix.com/shell-programming-scripting/117736-matching-names-2-text-files.html\#post302347353

Thank you!