Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500

Think I deserve a present? See my Amazon Wish List

Linux. Vi / Vim string substitution

In command mode.


replaces every occurrence of the string "Section" with the string "Chapter" from line 1 in the file through the buffer ($) - use . for to current line. The "/g" indicates that "Section" should be replaced by "Chapter" every time on a line

get rid of all links on a page.


Insert Carrage return at end of each paragragh:


(^M is CTL-V followed by Carrage return (CR))

Convert Mac documents to Unix


Strip all HTML from a document


Remove blank lines


Share this!  

Linux Send Html Email From Command Line | Linux Vi String Substitution | Md5 String


  Tips | Home | Search | Contact

Link here: