This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
[myuser@mycomputer]$ word="hello"
[myuser@mycomputer]$ if [[ $word =~ "^hello$" ]]; then echo "it was a hello"; else echo "must have been a goodbye"; fi
must have been a goodbye