String :
name@gmail.com
Want to check for :
@
.com
if those two are found, I want to set my boolean true
bool_one=true
How do I do this? I tried
if [ $word|grep[@] = $word]
but it's not working.
String :
name@gmail.com
Want to check for :
@
.com
if those two are found, I want to set my boolean true
bool_one=true
How do I do this? I tried
if [ $word|grep[@] = $word]
but it's not working.