2026-09-12 16:52 UTC
My hobby: deciding to do a deep dive on grep instead of an extra ten seconds of pageup/pagedown in order to distract myself from the three major-but-doable-but-never-actually-done-em-before tasks I have assigned myself today.
My other hobby: loading up Mastodon to toot about my struggles with focus, after catching myself after only wasting about a minute on the grep deep dive, but here's what I was trying to do:
The thing I am grepping for has a number of hits, each of them with a varying number of -A lines needed to quickly get the information I need. While this data is not reliably sized, it is trailed by a blank line, so what I would like grep to do, is find the terms I give it, and then -A until it sees a blank line.
Probably Id need to deep dive regex for that.
Haha.
Send me your witchy focusing mojo, fedi, for I need it more now than ever before.
#AuDHD
I was less tweaked going into every single one of my University finals. Gaaah!
Replies (1)
-
@bobjonkman@mastodon.sdf.org 2026-09-13 00:45
@jpaskaruk@growers.social This sounds like a job for AWK. #AWK #grep #RegEx