Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash not equal

if [ $VARIABLE1 != $VARIABLE2 ]; then
  echo "do something"
else
  echo "do something else"
fi
Comment

bash not equal

[ VALUE1 -ne VALUE2 ]
Comment

PREVIOUS NEXT
Code Example
Shell :: git clone recursive submodule 
Shell :: Flatpak in linux 
Shell :: docker image add tag 
Shell :: How to list manually installed packages in ubuntu 
Shell :: android uninstall application adb 
Shell :: change wallpaper command line linux 
Shell :: new branch from existing branch 
Shell :: make pm2 auto-boot at server restart 
Shell :: bash select 
Shell :: ignore file git 
Shell :: create pdf from images linux 
Shell :: how to give full permission to another user linux 
Shell :: what is samba in linux 
Shell :: install .net framework 3.5 from windows 
Shell :: sourcetree permission denied (publickey) github mac 
Shell :: install mongosh 
Shell :: pen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied), client: 
Shell :: git merge branch to master 
Shell :: laravel permission ubuntu lamp 
Shell :: boot pendrive cmd 
Shell :: what is my user ubuntu 
Shell :: add user sudoers arch 
Shell :: remove all files in a directory linux that match pattern 
Shell :: install google assistant on linux 
Shell :: ffmpeg video size reduction 
Shell :: Virtual Camera Support for linux 
Shell :: kubectl port-forward 
Shell :: remove directory from linux 
Shell :: Editing a Commit message 
Shell :: hard link linux 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =