Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

if output is null bash

[[ -z "$my_var" ]] && echo "NULL"
[[ -z "$my_var" ]] && echo "NULL" || echo "Not NULL"
Comment

PREVIOUS NEXT
Code Example
Shell :: installing gmp on mac os 
Shell :: netstat -anp | grep :80 | wc -l 
Shell :: homebrew install autoconf 
Shell :: ubuntu add multiverse 
Shell :: merge last three commits squash 
Shell :: remove all files starting with linux 
Shell :: curl insecure 
Shell :: kubernetes get node taints 
Shell :: download file via ssh with port 
Shell :: creating new repository in git 
Shell :: pterodactyl panel update 
Shell :: bash yaml parser library 
Shell :: wsl access network share 
Shell :: linux print to printer 
Shell :: apache disable tls 1.0 
Shell :: cmake 
Shell :: To use, run # sudo amazon-linux-extras install nginx1 
Shell :: conda install gdal 
Shell :: install npm package globally 
Shell :: restart bluetooth kali 
Shell :: convert windows file to unix 
Shell :: List bluetooth devices 
Shell :: conda update with environment from yml file 
Shell :: how to create a folder in linux 
Shell :: git squash commit 
Shell :: Winbox for linux 
Shell :: video editor for ubuntu 21.10 
Shell :: powershell verb 
Shell :: git with ssh instead of https 
Shell :: Command to create a new Vue app 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =