Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash or

if [ "$1" = "a.txt" ] || [ "$2" = "c.txt" ]; then
	# do smt...
fi
Comment

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 :: yum install redis cli 
Shell :: linux nano editor 
Shell :: flask make how public 
Shell :: how to create a new group in linux 
Shell :: how to change your bash setup 
Shell :: bash script create file 
Shell :: how to delete all text inside vi 
Shell :: linux nano how to go to a certain line 
Shell :: open crontab in nano 
Shell :: git basics 
Shell :: ubuntu git 
Shell :: cat in bash shell 
Shell :: do command in a command linux 
Shell :: install windows 10 on virtualbox mac 
Shell :: installing nginx on docker container 
Shell :: bash shuffle lines 
Shell :: std error bash 
Shell :: install gcmcore debian 10 
Shell :: how to save a specific file in stash 
Shell :: how to make bash script must be ran in sudo 
Shell :: GPG error: https://packages.sury.org/php buster InRelease: 
Shell :: kernel version link 
Shell :: how to copy zip file from remote to local 
Shell :: surface area of a spherical shell 
Shell :: Error when install irazasyed/telegram-bot-sdk in laravel 8 
Shell :: ca(oh)2 là gì 
Shell :: npm i install react boostrapp grid 
Shell :: pipeline remove all bin obj project 
Shell :: bacula install centos 7 
Shell :: clamav get html report 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =