conditions.md
· 553 B · Markdown
Bruto
`! EXPRESSION` - The EXPRESSION is false.
`-n STRING` The length of STRING is greater than zero.
`-z STRING` - The length of STRING is zero (i.e. it is empty).
`STRING1 = STRING2` - STRING1 is equal to STRING2
`STRING1 != STRING2` - STRING1 is not equal to STRING2
`INT1 -eq INT2` - INT1 is numerically equal to INT2
`INT1 -gt INT2` - INT1 is numerically greater than INT2
`INT1 -lt INT2` - INT1 is numerically less than INT2
`-d FILE` - FILE exists and is a directory.
`-e FILE` - FILE exists.
Опубликовано в https://t.me/gitgate
! EXPRESSION - The EXPRESSION is false.
-n STRING The length of STRING is greater than zero.
-z STRING - The length of STRING is zero (i.e. it is empty).
STRING1 = STRING2 - STRING1 is equal to STRING2
STRING1 != STRING2 - STRING1 is not equal to STRING2
INT1 -eq INT2 - INT1 is numerically equal to INT2
INT1 -gt INT2 - INT1 is numerically greater than INT2
INT1 -lt INT2 - INT1 is numerically less than INT2
-d FILE - FILE exists and is a directory.
-e FILE - FILE exists.
Опубликовано в https://t.me/gitgate