Domanda di colloquio di J. Crew

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