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
« April 2024 »
April
MoTuWeThFrSaSu
1234567
891011121314
15161718192021
22232425262728
2930