find and replace a pattern in a file

Hi
I am having 2 files file1.c and file2.c
Now i want to find all the occurances of pattern "abc" in file1.c, file2.c and replace with pattern "def" using shell script without using sed and with using sed.
Thanks in advance...
raju

Gee. This sounds like homework. We don't allow homework - see our rules.