Advanced Editing with vi

The preceding hour focused on the basics of inserting and deleting text and moving around within a file. This hour adds a critical capability: searching and replacing text within a file.

Task 11.1: Searching Within a File

With the addition of two more capabilities, you'll be ready to face down any vi expert, demonstrating your skill and knowledge of the editor, and, much more importantly, you will be able to really fly through files, moving immediately to the information you desire.

The two new capabilities are for finding specific words or phrases in a file and for moving to specific lines in a file. Similar to searching ...

Get Sams Teach Yourself UNIX® in 24 Hours Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.