This shows you the differences between two versions of the page.
bash:quick_reference [2015/12/10 13:35] Daniel Gohlke changed order |
bash:quick_reference [2024/02/16 00:48] (current) |
||
---|---|---|---|
Line 33: | Line 33: | ||
|-lt |Less Than |if [ "$foo" -lt "9" ] | | |-lt |Less Than |if [ "$foo" -lt "9" ] | | ||
|-n |String is not zero length |if [ -n "$foo" ] | | |-n |String is not zero length |if [ -n "$foo" ] | | ||
- | |-ne |Numeric Inquality |if [ "$foo" -ne "9" ] | | + | |-ne |Not Equal |if [ "$foo" -ne "9" ] | |
|-nt |Newer Than |if [ "$file1" -nt "$file2" ] | | |-nt |Newer Than |if [ "$file1" -nt "$file2" ] | | ||
|-O |True if file exists and is owned by the effective user id |if [ -O file ] | | |-O |True if file exists and is owned by the effective user id |if [ -O file ] | |