GREP in Bourne

I have a problem.

Suppose I have a log transport.log with the ff:
>>
tp finished with return code: 203
meaning:
wrong syntax in tp call
<<

I'm working on creating a script to find out if there are error are not. Unfortunately, the only way to check if there is error is if the return code is 0. I've tried to grep it with 'grep 0 transport.log` but it also return the one with 203. I just need to know if the return code is 0. not 10, no 90, not 103, but 0, and since grep searches for patterns it always returns even if the code is 10, 470. Anyway around this? I need to get the line if the return code is 0.

Hi,

for solving the problem , u can grep on return code: 0 instead of 0.

on HP machine, u can use -x option. when u use x oprion, it will match only distinct words and not substrings.

Can somebsoy suggest me whats the equivalent on solaris and aix.

u can use the option -w with grep, this will match the exact string which you want to search.

thanks for the advices. I'll try it now