Exploiting the Bourne shell to parse configuration files

Suppose that you have what I will call a 'directive style' configurationfile, where it looks something like (say):

fileserver fs1exportto hostsa:hostsbfilesys /h/10 fs1/d100filesys /h/11 fs1/d110

Further, suppose that you want to do things with this configuration filein a Bourne shell script, which requires parsing it to extract all of theinformation that you're interested in.

Normally this would be a pain


公主病

公主.錯誤.淺白(不知多久前的「自尋短見」,重點在文章結尾)

馮程程、梁曉端、鄭煥美、潘詩韻演出的《死亡與少女》(下稱《死》),捧著耶利內克的劇本,都說太難了,大篇大篇的獨白式對話(內容與形式同樣有簡單

鑚石論男人

鑽石論男人

The history of Unix *dump programs

The idea of a dump program itself goes back to V6(Research) Unix, which introduced the first, rather basic dump program. At the time, Unix had neither tar nor cpio , so dump wasyour only option for backups. V7 Unix introduced tar , and I have theimpression that as a result dump fell out of favour for backups.

My impression is that dump really got popular in 4.x BSD. WhenBerkeley revised the filesystem format to create FFS (the FastFileSystem), with


左右紅藍綠---美國大選 (袁彌昌)

還有哥哥的專訪一則@明報

戰略博士 隨心研究




關於我,就只有這句:

“後來知道﹐他的妹妹是香港小姐﹐似乎家學淵源﹕「以她以往讀書投放的時間﹐今天居然寫出這樣的文章﹐實在已是奇蹟」……”

喂,多謝曬wor....

最搞

書到用時﹕奧巴馬憑什麼闖經濟難關?

轉載自《明報》

文 葉 輝

編輯 陳立衡


袁彌明投效亞視 構思製作女性節目


















轉載自文匯報

** 一點點誤會。以下我提到所構思的節目,完全是在我腦裡的構想,完全沒跟任何製作單位詳談過。人選、時間都是我構思的範圍。

【本報訊】(記者 梁靜儀)袁彌明昨日以代言人身份出席「Botox瘦面分享會」,與

(你看我看你)^n

今天乘地鐵時,竟然給人用粗口問候。

話說我站在地鐵車廂中,用入耳式耳機很留神地聽著 Podcast,眼睛無意識地周圍看,察覺到斜對面的一名男子好像向我這個方向望過來。我以為他是看我身後的站圖,所以也沒有留意他真的在看


做人,原來好簡單

做人,原來好簡單

做人呢,可以話好複雜,又可以話好簡單,有時簡單到可以用一句話來總結一生。有個阿伯就曾經講過:「做人只有兩個目的,一係來攞債,二係來還債。」自從聽過這句話後,我每天上班對住上司Eric,心裡都


Thinking about how your security domains relate to each other

It may be that you have (or can have) more than one security domain among your machines. If you want to really havemultiple security domains, it's important to think about how theyrelated to each other and what this implies for how to manage themachines.

First, a note: a machine can never be in multiple security domains. Bydefinition, you work with security domains instead of single machinesbecause compromising one machine in a security domain eventually leadsto compromising all of them (assuming that your