shell字符串是否以a-zA-Z字母开头

if [ `echo $file|grep ^[a-zA-Z]` ]; then
    echo YES
fi
发布了569 篇原创文章 · 获赞 276 · 访问量 49万+

猜你喜欢

转载自blog.csdn.net/Rong_Toa/article/details/104252884