Personal tools
You are here: Home Les outils logiciels Unix Unix - Commandes - If
Navigation
Log in


Forgot your password?
 

Unix - Commandes - If

Condition

Condition

if<SPACE>[<SPACE>"$foo"<SPACE>==<SPACE>"bar"<SPACE>]

Example

    if [ $DATE_FILE_OLD == $DATE_NOW ]; then
        echo "OK"
    else 
        echo "FAILED"
    fi

 

 

Document Actions
« March 2024 »
March
MoTuWeThFrSaSu
123
45678910
11121314151617
18192021222324
25262728293031