Ostatnio aktywny 1743906611

Немного про числовые условия в bash

LittleGreenCat's Avatar LittleGreenCat zrewidował ten Gist 1743906611. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

conditions.md

@@ -1,6 +1,6 @@
1 1 `! EXPRESSION` - The EXPRESSION is false.
2 2
3 - `-n STRING` The length of STRING is greater than zero.
3 + `-n STRING` - The length of STRING is greater than zero.
4 4
5 5 `-z STRING` - The length of STRING is zero (i.e. it is empty).
6 6

LittleGreenCat's Avatar LittleGreenCat zrewidował ten Gist 1743906604. Przejdź do rewizji

1 file changed, 21 insertions

conditions.md(stworzono plik)

@@ -0,0 +1,21 @@
1 + `! EXPRESSION` - The EXPRESSION is false.
2 +
3 + `-n STRING` The length of STRING is greater than zero.
4 +
5 + `-z STRING` - The length of STRING is zero (i.e. it is empty).
6 +
7 + `STRING1 = STRING2` - STRING1 is equal to STRING2
8 +
9 + `STRING1 != STRING2` - STRING1 is not equal to STRING2
10 +
11 + `INT1 -eq INT2` - INT1 is numerically equal to INT2
12 +
13 + `INT1 -gt INT2` - INT1 is numerically greater than INT2
14 +
15 + `INT1 -lt INT2` - INT1 is numerically less than INT2
16 +
17 + `-d FILE` - FILE exists and is a directory.
18 +
19 + `-e FILE` - FILE exists.
20 +
21 + Опубликовано в https://t.me/gitgate
Nowsze Starsze