Search and replace using VI

We put VI into command mode. Then putting 1,$ means run the command over all the lines of the file - 1 is the 1st line and $ means the last line.

Then we use s/Blah/Foo/ to swap Blah for Foo - I guess s stands for swap.