Urgent help needed !!!....to replace a exact string

Hi experts,

As i am a novice unix player...so need help for the below query...banged my head from quite a while...:confused:

i have a set of html files, in which i need to search for string "Page"(case sensitive) and then replace the same with some numeric code ,say, "XXX1234".
Here in html files, there are some other similar strings like totalPage,currentPage,etc ....

i have tried using grap and using sed command, but problem here using grap is that it will return single line containing "Page" and then i can use sed to replace that word, but along with that i need non-replaced content as it is, and final output should be html file with only desired pattern replaced.

Was thinking , if any solution is there other than formal looping constructs.

would be a great help.....:b:

Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.

Thank you.

The UNIX and Linux Forums