Date: Thu, 9 Dec 2004 15:51:42 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: jthiyaga@kmart.com (Thiyagarajan, Jemima) Cc: jemydpm@yahoo.co.in Subject: Re: comparing two files yy.unl and xx.dat Message-ID: <200412092051.iB9Kpgw17177@clunix.cl.msu.edu> In-Reply-To: <EB17A4EDB81B8F4DA4DCD38578C1F43E073B4DCD@uskihsvpexch03.kih.kmart.com> from "Thiyagarajan, Jemima" at Dec 09, 2004 03:39:20 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > Hi all > > I am new to shell scripts. I have a doubt. Please somebody help me. > > Any explanation with example will be appreciated. > > I try to compare 2 files xx.dat (data separated by comma) and yy.unl > (data separated by |). > > And if a record in xx.dat is not found in yy.unl then move that record > to some database table like db2 table. Well, I would be inclined to write a small Perl script for that. If they both had the same separators there might be an easier way. Of course, I suppose it would be easy to convert the commas to bars or viceversa with sed and then work on it. But Perl is so easy it would be my choice. ////jerry > > > > Thanks > > > > Jemima > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412092051.iB9Kpgw17177>