LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] a sorting puzzle for anybody who's interested

[ILUG] a sorting puzzle for anybody who's interested

Ulysees Ulysees at ulysees.com
Wed Feb 4 12:08:07 GMT 2004


one entry per line
my eg that i just did up is

source1
0895556978 20040204115001 00000000000039 35
0895556978 20040204113736 00000000000205 90

source2
0895556978 20040204113725 00000000000210 104
0895556978 20040204114948 00000000000040 106

output
0895556978 20040204115001 00000000000039 35 106
0895556978 20040204113736 00000000000205 90 104

as you can see field1 will always match, but since it is not unique we can't
just match off that.
the combination of field1 and approximations of field2 and 3 can be
considered unique though.
field4 will always vary and is just data that we need to add at the end of
the line as 2 fields.

the length of field1 can vary too but it's match will always be the same
length

uly

----- Original Message ----- 
From: "Vishal Vatsa" <vishal at cs.may.ie>
To: "Ulysees" <Ulysees at ulysees.com>
Sent: Wednesday, February 04, 2004 2:11 AM
Subject: Re: [ILUG] a sorting puzzle for anybody who's interested


> have a look at the attached txt file
> is that like the proper inputs and output
>
> obviously ignore the st* stuff I have put in to explain my self,
> one question is it one entry per line or it is a continuous one line like
I
> have.
>
> I will solve this tomorrow. need sleep at  the moment
>
> -- 
> Vishal Vatsa
> Dept. of Computer Sc.
> NUI Maynooth
>
>
>
>






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell