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.

This website uses cookies to improve your experience, to personalize your advertisement and to analyze your access. Information about how you are using our Website will be sent to Google and StatCounter, By using the Website you agree that we set Cookies.OKRead More