Sample:
api-login-103923

to get the api

echo "api-login-103923"|cut -d"-" -f1

-d is the seprator
-f is the index , starting from 1

标签: shell

相关文章

添加新评论