You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
lang-bash
expris one of those swiss-army-knife utilities that can usually do whatever it is you need to do, once you figure out how to do it, but once implemented, you can never remember why or how it's doing what it's doing, so you never touch it again, and hope that it never stops doing what it's doing.expr, on rare occasion, when portability prevents using bash (eg., inconsistent behavior across older versions), tr (inconsistent everywhere) or sed (sometimes too slow). But from personal experience, whenever re-reading theseexpr-isms, I have to go back to the man page. So, I would just comment that every usage ofexprbe commented...exprandtestwere implemented to perform them. In this day and age, there are usually better tools, many of them built into any modern shell. I guesstestis still hanging in there, but nobody seems to be missingexpr.expr: syntax error: unexpected argument ‘.*.*’bash: [: -ne: unary operator expected