Yahoo Interview Question

Unix based questions - how would you replace a word in a file..grep etc.