#!/bin/bash
IFS=$'\n'
A= a c b t g j i e d
B= t y u i o p
counter=0
found=""
for i in $(cat $A)
do
for j in $(cat $B)
do
if [ $A=$B ]
then
found="yes"
fi
done
if [ $found="yes" ]
then
echo $i found
else
echo Position $counter....not found
found="no"
counter=$((counter+=))
fi
done
its saying all files in A have been found and even if i put dummy items the condition is always correct...Pliz help me where im going wrong...am a stranger to bash!