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
« May 2024 »
May
MoTuWeThFrSaSu
12345
6789101112
13141516171819
20212223242526
2728293031