in reply to compare two rows in a colum file

no.of sentences that has both Rp and /RP occuring together
In the same sentence i.e. line in the file??
If so, try matching each sentence with a regex like this:
m/RP.*\/RP/
Question by rovf above still holds.