bash: "expr index string1 string2" gives "syntax error"
expr index string1 string2
to find the position of string2 in string1, but this does not work on OS X while it works ok on several Linux machines. Reading the man page, I realized expr does something quite different on OS X than on Linux.
Can anybody suggest which command I should use to get the same functionality of the above on OS X?
Thanks
Andreas
MacPro, Mac OS X (10.4.9), Server