So I bought myself comics. And I was naively trying to count how many I got.
And I went aha! I’ll paste the lines into Emacs and the lines numbers will tell me :) So I just selected stuff off the web and put it in and …

Sheena: Queen of the Jungle, Vol. 2
Dynamite Entertainment
CBZ
185.4 MB
EPUB
105.4 MB
PDF
439.9 MB
Queen Sonja - Issue. #2
Dynamite Entertainment
CBZ
17.7 MB
EPUB
16.6 MB
PDF
137.2 MB
Vampirella: Throne of Skulls Vol 03
Dynamite Entertainment
CBZ
229.3 MB
EPUB
135.9 MB
PDF
438.6 MB
Red Sonja and the Ballad of the Red Goddess
Dynamite Entertainment
CBZ
132.9 MB
EPUB
50.2 MB
PDF
376.8 MB
Vampirella Strikes Vol 01
Dynamite Entertainment
CBZ
106.4 MB
EPUB
118.7 MB
PDF
351.7 MB
… really long list elided

And I go, Ugh! It’s Saturday! I’m too lazy to go selecting and deleting that cruft between my titles. Isn’t there something in Emacs that can help?
Spoiler Alert: Of course there is! Meet flush-lines

M-x flush-lines asks me for a regex pattern.
I gave it \ MB1 et voilà! Every line that had a space followed by MB disappeared!

Sheena: Queen of the Jungle, Vol. 2
Dynamite Entertainment
CBZ
EPUB
PDF
Queen Sonja - Issue. #2
Dynamite Entertainment
CBZ
EPUB
PDF
Vampirella: Throne of Skulls Vol 03
Dynamite Entertainment
CBZ
EPUB
PDF
Red Sonja and the Ballad of the Red Goddess
Dynamite Entertainment
CBZ
EPUB
PDF
Vampirella Strikes Vol 01
Dynamite Entertainment
CBZ
EPUB
PDF
… long list elided

And so a few, rapid commands to excise lines with Dynamite Entertainment, CBZ, EPUB and PDF later …

Sheena: Queen of the Jungle, Vol. 2
Queen Sonja - Issue. #2
Vampirella: Throne of Skulls Vol 03
Red Sonja and the Ballad of the Red Goddess
Vampirella Strikes Vol 01

… still a long list, but exactly what I wanted :)

I love you, Emacs!


Feedback on this post? Mail me at feedback at this domain

P.S. Subscribe to my mailing list!
Forward these posts and letters to your friends and get them to subscribe!
P.P.S. Feed my insatiable reading habit.



  1. the \ followed by a space is just to demonstrate here that I put in a space. I just naively typed a space followed by MB, actually ↩︎