Linux Today: Linux News On Internet Time.

More on LinuxToday

How to determine if a bash variable is empty in a Linux or Unix?

Jan 21, 2017, 10:00 (0 Talkback[s])
(Other stories by Anonymous)

My shell script depends upon user input. How do I find out if a variable called $_JAIL path is empty under a Linux / Apple OS X / Unix like operating systems? What is the best way to determine if a variable in bash is empty?

Complete Story