Sort across two or more files
- From: Quis custodiet ipsos custodes <newbie.cpp@xxxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 10:54:26 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: Sort across two or more files
- From: pk
- Re: Sort across two or more files
- Prev by Date: Discount buy Adidas shoes
- Next by Date: Re: Sort across two or more files
- Previous by thread: Discount buy Adidas shoes
- Next by thread: Re: Sort across two or more files
- Index(es):
Relevant Pages
|