[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 在 shell 中能对 ip 地址排序吗?



上网找C++库 :)

2009/5/12 Dongsheng Song <dongsheng.song@gmail.com>:
> 用 sort 得不到期望的结果:
>
> $ cat ip.txt  | sort -t . -n
> 192.168.2.234
> 192.168.2.237
> 192.168.2.246
> 192.168.2.247
> 192.168.2.28
> 192.168.2.50
> 192.168.2.51
>
> 谢谢!
>



-- 
我的操作系?是Gnu/Linux Debian/gNewSense Gnome Mozilla Gmail/Evolution
Gtkmm/Gtkglextmm Scim Totem Pidgin.


Reply to: