global search & replace in vi
something else I can never remember.
# vi global search & replace 1,$s/69.55.231.3/69.55.239.116/g # replace a string in every file in a directory # careful, it's recursive! find ./ -type f | xargs perl -pi -w -e 's/hi/aloha/g;'reference
About this entry
You’re currently reading “global search & replace in vi,” an entry on cairndesign
- Published:
- 10.26.05 / 8pm
- Category:
- reference
Comments are closed
Comments are currently closed on this entry.