锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲成在人线,亚洲精品乱码久久久久蜜桃
,亚洲爽爽一区二区三区http://m.tkk7.com/dedian/category/16533.html-- 鍏蟲敞鎼滅儲寮曟搸鐨勫紑鍙?/description>zh-cnTue, 27 Feb 2007 10:16:06 GMTTue, 27 Feb 2007 10:16:06 GMT60what comparison function is in linux sorting ?http://m.tkk7.com/dedian/archive/2007/02/02/97399.htmlDedianDedianThu, 01 Feb 2007 23:10:00 GMThttp://m.tkk7.com/dedian/archive/2007/02/02/97399.htmlhttp://m.tkk7.com/dedian/comments/97399.htmlhttp://m.tkk7.com/dedian/archive/2007/02/02/97399.html#Feedback0http://m.tkk7.com/dedian/comments/commentRss/97399.htmlhttp://m.tkk7.com/dedian/services/trackbacks/97399.html ... abca.com abc-d.com abce.com ...
I am curious what comparison function it applys in its' sorting function. I supposed it should be a string comparison, like strcmp function, but it is not. coz strcmp will compare ascii code of characters in string one by one, thus above sorting should like this:
abc-d.com abca.com abce.com
one guess is that when sorting names the special characters like "." "-" will be skipped. but still got some problem when sorting following names:
abc---d.com abc--d.com abc-d.com
why can linux sorting keep this order? if it skips some special characters, above names should be compared equally and maybe sorted as a random order.
confused, anybody has thought about that?
----- p.s.
Haven't got updated here for quite a long time, coz I am back to program with c under linux and I believe it is a place for Java programmers.
-----
update:
Linux sorting compares unicode of strings 鈥?more about unicode is here
]]>How to search a file in Linuxhttp://m.tkk7.com/dedian/archive/2006/04/19/41789.htmlDedianDedianTue, 18 Apr 2006 18:04:00 GMThttp://m.tkk7.com/dedian/archive/2006/04/19/41789.htmlhttp://m.tkk7.com/dedian/comments/41789.htmlhttp://m.tkk7.com/dedian/archive/2006/04/19/41789.html#Feedback0http://m.tkk7.com/dedian/comments/commentRss/41789.htmlhttp://m.tkk7.com/dedian/services/trackbacks/41789.htmlWell, I just want to know how to do file searching in Linux as something like dir <file_name> /s in聽DOS...