Created
May 23, 2017 13:51
-
-
Save developer-sdk/9e2ff0ec650a604b13b12fc054f56ec0 to your computer and use it in GitHub Desktop.
bash string like
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| string="abc def gh" | |
| if [[ $string =~ "c d" ]]; then | |
| echo "true" | |
| else | |
| echo "false" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment