Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell script -z

# -z string
# True if the length of string is zero.

MY_VAR="${1}"

if [ -z $MY_VAR ] ; then
  echo "No input provided for script"
  exit 1
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: link to folder ubuntu 
Shell :: ssh tunnel map 
Shell :: symfony gitignore 
Shell :: how to check whether a string contains a special character or not in bash 
Shell :: delete folder in linux 
Shell :: bash ifelse 
Shell :: linux how to remove all files with grep 
Shell :: Bash script Array + For loop 
Shell :: git merge dev to local branch 
Shell :: linux set environment 
Shell :: react-fetch-hook 
Shell :: git diff between two repos 
Shell :: nuxt 3 install 
Shell :: how to pull from specific branch 
Shell :: change user:dir to linux dir/file 
Shell :: how to remove a pushed file from git 
Shell :: npm install sql 
Shell :: set up ssh for github 
Shell :: change commit message git 
Shell :: install docker machine ubuntu 
Shell :: awk field separator multiple characters 
Shell :: sudo: yum: command not found 
Shell :: my ip 
Shell :: how to move to directories in command prompt 
Shell :: adding to git 
Shell :: docker no pg_hba.conf entry for host SSL off 
Shell :: push branch to main github 
Shell :: docker compose volumes 
Shell :: uninstall kubeadm 
Shell :: install flutter 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =