Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

codition in bash

# short if codition
[ $(( 2 + 2 )) -eq '4' ] && echo "yes"

# long if codition
if [ $(( 2 + 2 )) -eq '4' ]
then
  echo "yess"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: rhel 8 docker 19.03 
Shell :: like idm for linux 
Shell :: how to edit etc/hosts linux error readonly e45 
Shell :: letsencrypt raspberry pi 
Shell :: p4merge tool config 
Shell :: how to compress all branches on branch into one branch back to the master 
Shell :: gh-pages - gh-pages (non-fast-forward) 
Shell :: snaps in ubuntu take a lot of space 
Shell :: dolphin service menus 
Shell :: linux aarch64 arm none eabi cross compiler ubuntu 
Shell :: how to reboot a system with shutdown command 
Shell :: 500 SERVER ERROR docker laravel linux 
Shell :: delete file kali shell 
Shell :: isomanager installation script 
Shell :: how to fix a read only hard drive in linux 
Shell :: webgpu chrome linux 
Shell :: git create branches 
Shell :: install xampp in ubuntu 20.04 
Shell :: github push to repository 
Shell :: git set username and email 
Shell :: what is nano editor in linux 
Shell :: nextcloud .step file 
Shell :: how to install clementine music player on ubuntu 
Shell :: send file between two hosts linux 
Shell :: how to read an input in bash 
Shell :: command to add comment to a user info 
Shell :: const git = ["branch", "commit", "push"] 
Shell :: bash add element to front of array 
Shell :: play nethack through firewall 
Shell :: docker swarm redistribute services on nodes 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =