Comments on Linux expr command tutorial for beginners (with examples)
Sometimes, while working on the command line (especially when dealing with a shell script), you may find yourself in a situation where you have to perform actions like searching for a substring in a string, finding its index, as well as other things like performing comparisons and arithmetic operations. For those who aren't in the know, there exists a command line utility - dubbed expr - that lets you do all this.
1 Comment(s)
Add comment
Comments
By: Spencer
A question I have is: does expr start counting at 0 when looking at length or does it start with one? From the given examples, they seem to indicate the latter.