As always, Linux/Unix has many filters to solve the same issue. :)
Here's a solution using sed.
Suppose we have the following text file ....
The following "sed" script would remove BOO and the preceding line:sed code
# Handle the special case when our token is on line 1.
# This is the generic case for line 2 .. N
openSUSE 12.1/KDE 4.x
ISP: TekSavvy Bonded DSL; backhauled via a 6KM wireless link
Assorted goodies: »pablo.blog.blueoakdb.com