DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
check if variable contains string bash
STRING='Hello world' if [[ $STRING =~ "Hello" ]] ; then echo "It's here" ; fi
PREVIOUS
NEXT
Tagged:
#check
#variable
#string
#bash
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit