Xref: utzoo comp.unix.questions:7876 comp.unix.wizards:9688
Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!oliveb!olivea!andrewl
From: andrewl@olivea.olivetti.com (Andrew Law)
Newsgroups: comp.unix.questions,comp.unix.wizards,ca.unix
Subject: script,awk,sed question?
Keywords: script awk sed unix
Message-ID: <24707@oliveb.olivetti.com>
Date: 1 Jul 88 00:46:40 GMT
Sender: news@oliveb.olivetti.com
Lines: 15


Hello, I have two files:  
 file a                            file b
 with 'string 1' #n                with 'string 1' #1
      'string 5' #n                     'string 2' #2
                                        'string 3' #3
                                        'string 4' #4
                                        'string 5' #5
What I would like to do is to read file a and b. If there is
a match on the string in a to a string in b,  the #n will be 
substituted by the appropiate # number from file b.
Any suggestions on how to do with shell scripts, awk or sed.
Please send mail to andrewl@olivea.olivetti.com

Thank you very much.