I came across a shell script where the code is
for line in $LIST_ARRAY;do if [[ $LIST_ARRAY =~ $line ]] then echo "true" .... ... .
What is the use of =~ in this case?
=~