Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash check if number is greater than

# bash check if number is greater than
a=10
b=11

if [ $a -gt $b ]; then
	echo "this is won't be executed, because $a is smaller than $b";
fi

# DON'T DO THIS:
if [ $a > $b ]; then 		#INCORRECT!!
	echo "this will be executed, incorrectly";
fi
Comment

bash check if number is greater than

# bash check if number is greater than
a=10
b=11

if [ $a -gt $b ]; then
	echo "this is won't be executed, because $a is smaller than $b";
fi

# DON'T DO THIS:
if [ $a > $b ]; then 		#INCORRECT!!
	echo "this will be executed, incorrectly";
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: remove wine 
Shell :: lxc delete container 
Shell :: convert pem to ppk ubuntu 
Shell :: The requested nginx plugin does not appear to be installed certbot 
Shell :: certbot add new domain 
Shell :: how to find the ~/.zshrc file 
Shell :: mui version check 
Shell :: insall git onec2 
Shell :: brew install ngrok 
Shell :: bash add text to the beginning or end of every line 
Shell :: git commit amend 
Shell :: install redis brew 
Shell :: install teams linux 
Shell :: bash if is number 
Shell :: zoom ubuntu 18.04 
Shell :: ubuntu install ssh server 
Shell :: pip install hashlib 
Shell :: react native expo install 
Shell :: mac os check network ip 
Shell :: upgrade nltk version 
Shell :: find files created in last 20 days 
Shell :: unable to start ssh-agent service, error :1058 
Shell :: git push force 
Shell :: ghostscript on ubuntu 
Shell :: See all the PPAs added in the ubuntu system 
Shell :: sudo amazon-linux-extras install 
Shell :: install babel core 
Shell :: docker how to run command in mysql 
Shell :: check which repo i am on git 
Shell :: error: The following untracked working tree files would be overwritten by merge: .DS_Store .gitignore Please move or remove them before you merge. 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =