On Sat, Dec 12, 2009 at 7:14 AM, fereshteh jadidi <[email protected]> wrote:
> Dear Mr. Motamedi > "diff" doesn't work because the two file's lines are not exactly the same > , therefore you must write a script with "awk". > > movafagh bashid! > > > --- On Wed, 12/2/09, hadi motamedi <[email protected]> wrote: > > > From: hadi motamedi <[email protected]> > Subject: [Solaris-Users] Inquiry:How to compare two text files? > To: "Solaris-Users mailing list" <[email protected]> > Date: Wednesday, December 2, 2009, 11:00 AM > > > Dear All > Please be informed that I have two text files that have some rows with the > same data inside them . I need to compare them and find how many lines with > similar data , but this comparison need not to be done in a line-by-line > basis . I mean , the row#1 in file1 in not necessarily the same as row#1 in > file2 but say row#3 in file1 may be the same as say row#5 in file2 . So > please let me know how can I compare these two files and find how many rows > with similar data inside them ? > Thank you in advance > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > > > > > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > Dear Ms. Jadidi Can you please confirm if the following works ? %awk -F, ' { print $4 } ' | grep -v "^0" | wc -l BTW , can you please let me know if you have experienced Solaris 8 Emulator / Virtualizer on the x86 platforms ? Can you please give me more details on this ? Let me thank you in advance _______________________________________________ Solaris-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/solaris-users
