read line from a file and check the string
i am having the output in file like below. i need to validate line by line and check the string is same or not.
if first line is mango and second is orange and third is apple
then i need to give the message success
any one of the string is wrong then it is not success.
how can i do this in shell scripting.. please help...