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