Shell/Bash: bash conditional regex match Example


Shell/Bash Example: This is the "bash conditional regex match" Example. compiled from many sources on the internet by

bash conditional regex match

Just appreciate next solution example for your code implementation:
if[[ "$S" == *ing ]]; then ...//some code run if string ends with 'ing'
More generally:
if[[ "string_to_check" == regex_patten ]]; then ...//some code

* Summary: This "bash conditional regex match" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!