Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

vi replace pattern

# Replace all matching patterns
:s%/PatternToReplace/Replacement

# Replace one matching pattern at a time
:s/PatternToReplace/Replacement
Source by vi.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #vi #replace #pattern
ADD COMMENT
Topic
Name
5+1 =