foundflag = awk -F" " 'FNR==NR{A[$arg1 OFS $PREVFILE];next}
!($arg1 OFS $PREVFILE in A){X++} END{if(!X){print "No diff."}
else {print "Diff found."}} $arg1 ${PREVFILE}
echo $foundflag
here am comparing two files and want to store awk command result into some variable please help in Ksh script.