Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sh is null if

VARIABLE="this variable is not null"
if [[ -z $VARIABLE ]]
then
   echo "is null"
else
   echo "is not null"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: yarn add @materialui 
Shell :: cpu temp on ubuntu 
Shell :: shell script while loop example 
Shell :: docker compose plugin 
Shell :: ubuntu spotify 
Shell :: install adb 
Shell :: how to print specific line from a file in bash 
Shell :: bash store file lines in variable 
Shell :: pip install bootstrap 
Shell :: youtube-dl ubuntu 
Shell :: list files by last modified linux 
Shell :: check if s3 bucket exists 
Shell :: watch distro linux 
Shell :: node number id generator 
Shell :: give root permission to program linux 
Shell :: gitbash shortcut to clear the terminal 
Shell :: remove global packages npm 
Shell :: check wordpress version cli 
Shell :: uninstall all requirements 
Shell :: curl skip ssl 
Shell :: git remove folder from repository 
Shell :: how to edit crontab in linux 
Shell :: sourcetree change commit message 
Shell :: change global user name git 
Shell :: vscode save git credentials 
Shell :: install fdupes duplicate content finder on linux 
Shell :: format partition linux 
Shell :: ionic publish 
Shell :: zoom gedit 
Shell :: shell set environment variable 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =