2026-09-13 02:12 UTC
Seconding @drscriptt@oldbytes.space's suggestion here. But running with @bobjonkman@mastodon.sdf.org's, the #awk syntax would be similar:
awk '/-A/,/^$/'
or
awk '/-A/,!length'
@jpaskaruk@growers.social
Replies (1)
-
@jpaskaruk@growers.social 2026-09-13 20:21
@gumnos@mastodon.bsd.cafe @drscriptt@oldbytes.space @bobjonkman@mastodon.sdf.org I was being very unclear in my intent there, sorry -A is a grep command line switch, which prints however many lines you specify After each hit. Since the trailing lines varied, but were all terminated by a blank line, I was looking for effectively "-A UntilBlankLine" as opposed to the string "-A". Like I said, was not communicating very clearly there. :>