Pergunta de entrevista da empresa Yahoo

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