How can I test if a variable is empty or contains only spaces?
How can I test if a variable is empty or contains only spaces?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(unix.stackexchange.com/users/67059/maihabunash)maihabunash |
(unix.stackexchange.com/users/73093/michael-homer)Michael Homer |
(unix.stackexchange.com/users/885/gilles-so-stop-being-evil)Gilles 'SO- stop being evil' |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/21167/zwol)zwol |
(unix.stackexchange.com/users/98354/guru)Guru |
A special thanks goes out to the (https://unix.stackexchange.com/questions/146942/how-can-i-test-if-a-variable-is-empty-or-contains-only-spaces)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
shell string shell-script bash