Monday, 15 June 2009

Linux - bash (1)

很喜歡寫 bash script, 因為功能很強. 但初學 bash 時, 覺得它太笨 , 例如 :

#/!bin/bash
theday = 'today'

第二行是錯的, 因為 "=" 前後不可有空格

#/!bin/bash
theday='today'

要這樣才對 !

No comments:

Post a Comment