Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell cehck if string is null

my_var="nixCraft"
if [ -z "$my_var" ]
then
      echo "$my_var is NULL"
else
      echo "$my_var is NOT NULL"
fi

// https://www.cyberciti.biz/faq/bash-shell-find-out-if-a-variable-has-null-value-or-not/
Comment

PREVIOUS NEXT
Code Example
Shell :: vscodium download ubuntu 
Shell :: comments in linux 
Shell :: how to I paste in gitbash windows 
Shell :: how to download gnome screensaver on linux 
Shell :: terminals for ubuntu 20.04 
Shell :: ssh secure shell client 
Shell :: add new file to context menu win 10 11 
Shell :: get childitem filepath list powershell 
Shell :: Install docker EE without internet 
Shell :: bluetooth xubuntu activate linux 
Shell :: 28 essential aws s3 command line 
Shell :: manueldeveloper github 
Shell :: tab to csv command line 
Php :: drupal 8 show php errors 
Php :: info.php 
Php :: php remove last character in string 
Php :: check directory exists in php 
Php :: laravel migration add column to existing table 
Php :: display wp shortcode by php 
Php :: php get directory 
Php :: wordpress error log 
Php :: numbric validate laravel 
Php :: store image in public folder laravel 8 
Php :: php post form to self 
Php :: php get type of object 
Php :: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) 
Php :: laradock ext-ldap 
Php :: laravel run seed 
Php :: php get file contents 
Php :: php stdclass to array 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =