> cat example.txt
TODO: complete this
TODO: Complete that
Open the example.txt using vim and type :v/TODO/d in the Ex mode. This will delete all lines that do not contain the TODO pattern.
Get monthly updates about new articles, cheatsheets, and tricks.