Sort across two or more files



OK, let's say we have three files: names, phone and age

[me@work /] cat names
Adam
Bob
Clare

[me@work /] cat phone
1234567
2345671
3456781

[me@work /] cat age
25
21
23

[me@work /] sort -n age
21
23
25

I now want to maintain the references between Names/Phone numbers/Ages
so that I don't end up just shuffling the data. (i.e. the Names file
gets changed to Bob-Clare-Adam, ditto the phone numbers file)

How do I accomplish this?

Thanks.




.



Relevant Pages

  • Re: Sort across two or more files
    ... On Thursday 30 October 2008 18:54, Quis custodiet ipsos custodes wrote: ... cat names ... How do I accomplish this? ...
    (comp.os.linux.misc)
  • Re: Catnippeds Xmas cards
    ... >I got my CatNipped card today here in Florida! ... Thanks, Cat. ... >wall for decoration. ... Ditto and ditto! ...
    (rec.pets.cats.anecdotes)
  • big project need to add and delete
    ... I have tried to skin this cat several different ways and can't do it ... What I need to accomplish is this: ... entry and then delete any others that follow. ...
    (microsoft.public.excel.programming)
  • Re: Ooops
    ... We need to see the code you're trying to use to accomplish this. ... There's ALWAYS more than one way to skin a cat! ... Answers/posts based on Access 2000/2003 ...
    (microsoft.public.access.forms)
  • Re: Reading and writing from a file
    ... Be careful that your count may get corrupted should more than one ... cat counter.txt ... accomplish this by adding 1 to the value, but I guess I'm not doing it right. ... # Great spirits have always encountered violent # ...
    (comp.lang.php)