I'm not quite sure why you refer to this post (Mind the meta!).
The code I suggested in my post was, as I pointed out, "(j)ust an example to be adapted to (the OP's) specific needs". Depending on the situation, the regex might need an ignore case modifier, a quotemeta of the string used for the regex, etc. And the code might need some other changes, too.
In reply to Re^3: system bash return value
by Laurent_R
in thread system bash return value
by stanley82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |