查找子字符串

5年以前  |  阅读数:493 次  |  编程语言:Shell 

查找字符 "i 或 s" 的位置:

string="runoob is a great company"
echo `expr index "$string" is`  # 输出 8

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8