字符串比较

5年以前  |  阅读数:471 次  |  编程语言:Shell 
#!/bin/bash
#testing string equality

testuser=tiandi

if [ $USER = $testuser ]
then
    echo "Welcome $testuser"
fi

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8