From the posix shell:
grep `cat fileA` fileB|cut -d ' ' -f 2|tr -d "\n">fileC
> -----Original Message-----
> From: Donald Frantum [mailto:[log in to unmask]]
> Sent: Tuesday, June 18, 2002 4:31 PM
> To: [log in to unmask]
> Subject: Re: looping out of control
>
>
> Okay here is what I am trying to do, with no luck I might add.
>
> I want to compare file a(single value) to file b(multiple values) and
> extract the multiple values into one record.
>
> file a= 123
> file b= 123 xyz
> file b= 123 pdq
> file b= 123 abc
>
> resultant file= 123 xyzpdqabc
>
> Can someone help.
>
> Thanks in advance,
>
> Donald N Frantum
> Business Analyst
> Houdini Inc
> 4225 N. Palm Street
> Fullerton, CA 92835
> (714) 525-0325 ext.311
> [log in to unmask] <mailto:[log in to unmask]>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *