QA Graphic

BBEdit: Process Lines Containing

Using the 'Process Lines Containing' functionality in BBEdit, I can quickly filter out unwanted lines in a log file:

BBEdit Process Lines Containing

(Exabot|Crawler|megaindex|AhrefsBot|bot.html|spider|slurp|yandex|bingbot|majestic12)

I use this when I am looking at the Apache's HTTPd server logs and want to filter out Bots and Google hits to my site.

This will look for each line containing any of the matching text, and if one word is found the line is removed from the file. This saves a ton of time of running multiple grep statements.

You can find the 'Process Lines Containing' under the Text menu in BBEdit. I use it so much that I just assigned a custom Menu key equivalent.

 

About

A Mac veteran since 1989, I'm here to share my experience with tips and tricks every Friday. Witnessing the evolution of Mac software and hardware firsthand, I've gained a deep understanding of how these machines work and can help you troubleshoot any issues that may come up.

Schedule

WednesdayKeyboard Maestro
ThursdayGluten Free
FridayMacintosh
SaturdayInternet Tools
SundayOpen Topic
Monday Media Monday
TuesdayQA