Horje
bash compare numbers Code Example
bash if larger than
# In bash, you should do your check in arithmetic context:

if (( a > b )); then
    ...
fi

# For POSIX shells that don't support (()), you can use -lt and -gt.

if [ "$a" -gt "$b" ]; then
    ...
fi
bash compare numbers
-eq # Equal
-ne # Not equal
-lt # Less than
-le # Less than or equal
-gt # Greater than
-ge # Greater than or equal




Shell

Related
tablet mode powershell script Code Example tablet mode powershell script Code Example
How to translate to md5 linux Code Example How to translate to md5 linux Code Example
wsl ssh not working Code Example wsl ssh not working Code Example
install Postfix to send notification emails Code Example install Postfix to send notification emails Code Example
jetson nano arch linux for yolo Code Example jetson nano arch linux for yolo Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12