Forcing sort ordering in Unix shell scripts

There are a number of situations in Unix shell scripts where you knowthe order that the lines in your output should be in, but you can'tproduce it in that order and nothing in your normal output is usefulto sort on. One common case is awk scripts that accumulate informationinto arrays and then dump it out in their END blocks with ' for (keyin array) ... '; array keys are, of course, produced in no particularorder.

In this situation, some people go


體重和股市

一起創新低=94磅

最新減肥方法推介:看屋,選家俬,和搬屋

Gawande

I have been enjoying a book teaching us to make fun of reading and how to enjoy writing. The author didn't say a lot about writing skills. Rather, it's the trick for staying in our writing chairs that really impresses me.

One of the most pleasant lessons was drawn from the perspective of Atul Gawande, an award-winning doctor-writer. The author quoted Gawande, "To be sure, talent helps… Nonetheless, attending surgeons say that what is most important to them is finding people

選美風雲50年--錄影


韓 君 婷 、 袁 彌 明 ( Erica ) 、 吳 文 忻 、 郭 秀 雲 昨 日 齊 為 《 選 美 風 雲 50 年 》 錄 影 , 港 姐 出 身 的 Erica , 坦 言 當 年 對 司 儀 們 於 泳 衣 環 節 發 問 的 問 題 感 奇 怪 , 她 說 : 「 本 準 備 於 直 播 時 反 問 司 儀 阿 叻 同 志 偉 , 『 點 解 選 香 港 小 姐 要 問 埋

Continue reading...

大時代-股災

陳年電視劇大時代好看
電視史上難以再有這樣的節目這樣的題材
它的經典之處在於拍股票的升升跌跌也拍人的貪念與仇恨
當然它的丁蟹效應也是不由你不信的附加價值
此時此刻
重看這段股災場面
大家肯定有感觸
那時候恆指才三千

我死後必下地獄

(關於鞋)

讓我代媽媽說:「一口氣買3對Camper的人死後必下死獄。」

買了3對new arrival的Camper,一對平底尖頭twins、一對有fur trim的boots,另加一對黑色高跟鞋,埋單找數過$4000。

公司sponsor 300大元,我卻倒貼$1499去買一對上班

出人意表 – 追擊者

The Chaser

雖然宣傳將《追擊者》與《原罪犯》相提並論,但事實上還真是兩碼子的事。《追擊者》劇情並不算複雜,算是很務實地交代了一宗連環兇殺案的追兇過程,但也並非一般商業計算,有很多出人意表的情節。

[以下劇透!]

說出


Some notes about iSCSI multipathing in Solaris

Our new fileservers have multiple networkpaths to the backend iSCSI storage, which means that we needed to setup some sort of multipathing. Theoretically, there's at least threedifferent ways of doing this: bonding multiple network interfacestogether, a native iSCSI feature for this called 'multiple connectionsper session' (MC/S), and high level, cross device multipathing. Inpractice, the complexity of getting network bonding working in across-vendor environment gave me hives and neither Solaris nor our LinuxiSCSI targets


8579

昨晚睡覺之前看道指跌了100點,想必跌勢已喘定了點, 誰料收市跌679點,報8579點。 連我這個大淡友都從來沒想過道指會見8,可想而知金融海嘯已經到了超乎任何人想象的地步。

香港今天是跌定,問題在於會不會

誠意推薦-保持通話


前兩天心情不好,跑去看了陳木勝的“保持通話”,欣賞好人做好事的故事,大快人心。

電影正式買版權改編自荷理活電影,做法值得敬重,而且香港版拍了大量港片的特色飛車場面,回復昔日港產片的衝勁,拍得非常專業。