Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

and in bash

Logical AND (&&)

if [1 -gt 0 ] && [ 2 -gt 1 ]; then 
	echo 1;
fi
 
 Logical OR (||)
 
 if [1 -gt 0 ] || [ 2 -gt 1 ]; then 
	echo 1;
 fi
Comment

and OR bash

[[ ! EXPR ]]	Not
[[ X && Y ]]	And
[[ X || Y ]]	Or
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install blackeye bash 
Shell :: linux blackeye 
Shell :: npm install mongoose specific version 
Shell :: $path mac 
Shell :: git log my commits 
Shell :: linux mint 20 dark mode 
Shell :: parameter powershell 
Shell :: ssh connect command 
Shell :: how to push local repo to github 
Shell :: vagrant@127.0.0.1: permission denied (publickey). 
Shell :: how to merge remote branch 
Shell :: vscode showing deleted branches 
Shell :: wsl --install 
Shell :: git remove folder from cache 
Shell :: how to uninstall a aur package 
Shell :: pip install in jupyter notebook 
Shell :: how to change branch name in github 
Shell :: how to install powerline for ubuntu 
Shell :: install kubectl krew 
Shell :: main vs master in git 
Shell :: linux test examples 
Shell :: Deleting or removing a directory or folder 
Shell :: gitlab create branch 
Shell :: how to find and replace on linux 
Shell :: sbt build command 
Shell :: how to delete branch github 
Shell :: terminal delete all files that start with 
Shell :: The "@angular/compiler-cli" package was not properly installed. 
Shell :: how to check what default browser in linux 
Shell :: react native map install npm 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =