The thing is the no of values in file can exceed example ABC,1239800,4545465,AHHAH so i need to find those values in file 1 which do not match in File 2 so i should get ABCKJK,66767 and BCED,890000
[root@sistem1lnx tes1]# cat diff.sh
cat /dev/null > diffline.txt
while read line1
do
var=0
while read line2
do
if [ "$line1" = "$line2" ]
then var=1
fi
done < file2
if [ "$var" = "0" ]
then echo $line1 >> diffline.txt
fi
done < file1
[root@sistem1lnx tes1]# ./diff.sh
[root@sistem1lnx tes1]# more diff
diffline.txt diff.sh
[root@sistem1lnx tes1]# more diffline.txt
BCED,890000
ABCKJK,66767