[ale] OT: Synchronizing cell phones with GNOKII

Geoffrey lists at serioustechnology.com
Thu Nov 20 14:43:57 EST 2008


John Mills wrote:
> Geoffrey -
> 
> Thanks. Your assumptions are correct; I'll give your suggestion a shot.
> 
> I only need to sort on the first characters of the name, however it 
> appears (first, last, business, ...).

That's the easy one then:

sort filename

:)

> 
> Regards.
> 
>  - Mills
> 
> On Thu, 20 Nov 2008, Geoffrey wrote:
> 
>> John Mills wrote:
> 
>>> I exported the two phonebooks with GNOKII as files of records of the 
>>> form:
> 
>>> <name with spaces>;<phone_number>;<memory_type>;<seq_number>;5<NL>
> 
>>> I would like to sort the lists by phone number in order to cull and 
>>> combine them, probably re-sort by name, then adjust the sequence 
>>> numbers.
> 
>> I'm assuming the '<>' are not in the data.  That being said, you 
>> should be able to sort by phone number as follows:
>>
>> sort -t ';' --key=2.1,2.10 filename
>>
>> Test it, I didn't. :)
>>
>> As for sorting by name, do you want to sort by last name?  That makes 
>> it a bit more challenging.
> 
> 


-- 
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
  - Benjamin Franklin


More information about the Ale mailing list