How to check for strings between certain strings in unix scripting?

前端 未结 3 525
野性不改
野性不改 2021-01-26 11:55

String:

name@gmail.com

Checking for:

@
.com

My code

if [[ $word =~ \"@\" ]] 
then 
    if [[          


        
3条回答
提交回复
热议问题