How to check NULL in a string in Shell Script ? | Open Source Blog - Java,Python,Linux

How to check NULL in a string in Shell Script ? | Open Source Blog - Java,Python,Linux

瀏覽:1201
日期:2025-04-27
Jan 3 How to check NULL in a string in Shell Script ? The following code snippet will tell whether a string is null or not . VALUE= if [ ! -n "$VALUE" ]; then echo "null"; else echo "String is not null" fi Posted 3rd January 2011 by Srikrishnan's Blog for...看更多