2012-05-27 36 views
1

在 「RabbitMQ的-ENV」 相同的RabbitMQ的劇本,存在 「-H」, 「F」,下面幾行:RabbitMQ的bash腳本-f -h意義

while [ -h "$SCRIPT_PATH" ] ; do 

[ ! -f ${CONF_ENV_FILE} ] ; then 

什麼意思這些符號?

+1

您可以瞭解更多關於Bash的語法,從[參考手冊](http://tiswww.case.edu/php/chet/bash/bashref.html)或[手冊頁]( http://tiswww.case.edu/php/chet/bash/bash.html)。 –

+0

謝謝您的信息。 –

回答

5

[test。從help test

-f FILE  True if file exists and is a regular file. 
    ... 
    -h FILE  True if file is a symbolic link. 
+0

非常感謝。 –