User Tools

Site Tools


programming-languages:bash:loops

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming-languages:bash:loops [2023/11/01 11:32] – [Test on strings] tormecprogramming-languages:bash:loops [2023/11/01 12:22] (current) tormec
Line 31: Line 31:
 done done
 </code> </code>
- 
- 
-===== Test on strings ===== 
- 
-^ expression ^ is TRUE if ^ 
-| ''<str>'' | ''<str>'' is not null | 
-| ''-n <str>'' | ''<str>'' length is greater than zero | 
-| ''-z <str>'' | ''<str>'' length is zero | 
-| ''<str1> == <str2>'' | ''<str1>'' and ''<str2>'' are equal | 
-| ''<str1> != <str2>'' | ''<str1>'' and ''<str2>'' are not equal | 
-| ''<str1> > <str2>'' | ''<str1>'' comes after ''<str2>'' in lexicographically order | 
-| ''<str1> < <str2>'' | ''<str1>'' comes before ''<str2>'' in lexicographically order | 
- 
- 
-===== Test on integers ===== 
- 
-^ expression ^ is TRUE if ^ 
-| ''<int1> -eq <int2>'' | ''<int1>'' is equal to ''<int2>'' | 
-| ''<int1> -ne <int2>'' | ''<int1>'' is not equal to ''<int2>'' | 
-| ''<int1> -le <int2>'' | ''<int1>'' is less than or equal to ''<int2>'' | 
-| ''<int1> -lt <int2>'' | ''<int1>'' is less than ''<int2>'' | 
-| ''<int1> -ge <int2>'' | ''<int1>'' is greater than or equal to ''<int2>'' | 
-| ''<int1> -gt <int2>'' | ''<int1>'' is greater than ''<int2>'' | 
- 
  
  
programming-languages/bash/loops.txt · Last modified: 2023/11/01 12:22 by tormec