Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

check if bash variable is undefined

if test -z "$var" 
then
      echo "$var is empty"
else
      echo "$var is NOT empty"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: grafana speedtest 
Shell :: grep print all after 
Shell :: pulling a branch from github 
Shell :: add group docker compose 
Shell :: git config set email 
Shell :: copy file to remote server 
Shell :: error: resource android:attr/lStar not found. 
Shell :: how to reduce the size of an image in linux 
Shell :: poetry add library 
Shell :: ubuntu activate network interface on boot 
Shell :: /bin/bash^M: bad interpreter: No such file or directory 
Shell :: how to install deepin desktop environment on ubuntu 20.10 
Shell :: cmd dir all files subfolders 
Shell :: how to install vim on macos 
Shell :: set node role kubernetes 
Shell :: what is merge conflict in git 
Shell :: check ubuntu uptime 
Shell :: anaconda install for kali linus 
Shell :: makefile parameter 
Shell :: install vue native globally 
Shell :: brew show package info 
Shell :: install vlc on fedora 
Shell :: omni github 
Shell :: how to clone all git repositories 
Shell :: how to open files using terminal in ubuntu 
Shell :: how to install and connect to ftp on ubuntu 18 
Shell :: add project to github 
Shell :: boot pendrive windows cmd 
Shell :: conda install throws ssl error 
Shell :: add user to sudoer "zsh" same customization for root 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =