This is how I would search for an element in an array.count=${#ARRAY[@]}lsearch(){  status=-1  for((i=0;i<count;i++))  do     Temp=$1     if [[ $Temp -eq ${ARRAY[i]} ]]       then         status=0         searches=$((i+1))         return     fi   done}Suppose I need to look for all the elements of an array say (a b c d) in another array ( a h c d l k).Now for each element in one array I need to loop over the other array with a for loop.Is there any better way?
Searching for all the array elements in another array?
bash;sed;awk