Skip to main content

Benjamin Oakes

Photo of Ben Oakes

Hi, I'm Ben Oakes and this is my geek blog. Currently, I'm a Ruby/JavaScript Developer at Liaison. Previously, I was a Developer at Continuity and Hedgeye, a Research Assistant in the Early Social Cognition Lab at Yale University and a student at the University of Iowa. I also organize TechCorridor.io, ICRuby, OpenHack Iowa City, and previously organized NewHaven.rb. I have an amazing wife named Danielle Oakes.

Deleting Lines that don’t Match a Pattern

by Ben

And we want to delete all lines that don’t contain calculate. We can do that with :v. Simply running:

:v/calculate/d

Source: Deleting Lines that don’t Match a Pattern

Comments

You can leave a comment, or trackback from your site. Article comments

Leave a comment