首页 > Linux操作系统 > Linux操作系统 > shell字符串是否以a-zA-Z字母开头
if [ `echo $file|grep ^[a-zA-Z]` ]; then echo YES fi
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31560527/viewspace-2682665/ ,如需转载,请注明出处,否则将追究法律责任。
注册时间:2018-11-01