If / Else Statements (Shell Scripting) - Code Wiki
Shell scripts use fairly standard syntax for if statements. The conditional statement is executed using either the test command or the ... thus -f is generally used)-f file True if the provided string is a file-g file True if the group id is set on a file...