1

Ищем номер первого вхождения символа в строку

$ expr index "foobarbaz" b
4
$ expr index "foobarbaz" a
5
$ expr index "foobarbaz" z
9
-----------