Pergunta de entrevista da empresa J. Crew

How to you find a string and replace using vi editor? How do you do it in bash or windows without Vi?