bash test builtin word regexp with =~ operator

前端 未结 0 1131
春和景丽
春和景丽 2020-12-04 04:07

How can I do that in bash? And is it possible to change [[ $1 =~ apple && $1 =~ banana ]] to something like [[ $1 =~ apple&&banana ]] ?

testme         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题