shell中expr用法 shell中的expr index是什么意思?

shell中的expr index是什么意思?字符串操作: 提取指定字符的下标:expr index 内容 字符,例如:$ind=`expr index "$content" "="` 提取字符串的子

shell中的expr index是什么意思?

字符串操作:

提取指定字符的下标:expr index 内容 字符,例如:$ind=`expr index "$content" "="`

提取字符串的子串:expr substr 内容 起始位置 终点位置,例如:$con=`expr substr "$content" "1" $ind