linux shell script if string compare的相關文章
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

瀏覽:1162
日期:2026-04-25
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...看更多