Yes, vi is cryptic. But this command is useful for performing find and replace functions within the vi editor. First, hit ESC (escape), and the colon key (:) to get to the ex shell. Then enter:
%s/searchString/replaceString/g
An example will be:
:%s/WindowsNT/RedHatLinux/g
No comments:
Post a Comment