|Liam Delahunty: Home||Tips||Web||Contact|
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