jack craig wrote:
> On 03/09/2010 04:32 PM, adrian kok wrote:
>> I have file as below
>>
>> 192.168.0.4      switch
>> 192.168.0.47    server 
>> 192.168.0.43    printer
>> 192.168.0.218  fax
>> 192.168.0.205  monitor
>>
>> How can I use sort to 
>>
>> 192.168.0.4   switch
>> 192.168.0.43  printer
>> 192.168.0.47  server
>>
> sort -nr < file1 > file2
> 
> doesnt work?

sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n

-- 
   Roberto Ragusa    mail at robertoragusa.it
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to