Replacing a word in a file with another word

Let's say that you want to replace all occurrences of the word is with the word was in one of your files. Let's find out how to do this.

In this recipe, I will assume that a sequential file already exists. Please read Appendix A to learn how to create a sequential file.