[personal profile] nixcraft


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?

Pass the -z option to the if command or conditional expression.

Read more here
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

nixcraft

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22 23 2425 26 2728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 7th, 2025 10:29 pm
Powered by Dreamwidth Studios