Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash compare numbers

-eq # Equal
-ne # Not equal
-lt # Less than
-le # Less than or equal
-gt # Greater than
-ge # Greater than or equal
Comment

bash compare numbers

bash if greater thanShell/Bash By Me (Armandres) on Feb 18 2021 DonateDeleteEdit
if (( a > b )); then
    ...
fi
#Use above example or below one:
if [ "$a" -gt "$b" ]; then
    ...
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: uninstall all pip packages anaconda 
Shell :: terraform vpc 
Shell :: kubernetes copy files to persistent volume 
Shell :: check intellij version 
Shell :: removing a file in linux 
Shell :: git submodule update --init --recursive 
Shell :: bash find and replace all files with specifc name with another file 
Shell :: git cherrypick 
Shell :: instaling ansible on ubuntu linux 
Shell :: ubuntu camera not longer found 
Shell :: apache airflow docker 
Shell :: with which command make file and directory in linux 
Shell :: turn a folder into a git repo 
Shell :: gitlab push 
Shell :: how force detached ENI 
Shell :: git commit no pré commit 
Shell :: mac Os dark icons for ubuntu 20.04 
Shell :: how to add characters before a line 
Shell :: overleaf git no password 
Shell :: bash source in lxc 
Shell :: how to install lame linux 
Shell :: add user to vboxuser gruop arch 
Shell :: power shell scribt to copy files 
Shell :: how to check echo version 
Shell :: cara mengkonfigurasi git di terminal linux 
Shell :: reverse serach linux 
Shell :: pip install tensorflow no matching distribution found for tensorflow 
Shell :: bacula install centos 7 
Shell :: como buscar archivos ejecutables linux comandos 
Shell :: stop a service at startup linux amazon 2 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =