2026-09-13 20:21 UTC
@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. :>
Replies (1)
-
@gumnos@mastodon.bsd.cafe 2026-09-13 20:26
@jpaskaruk@growers.social Hah, I'd wondered about that, so if you're grepping for "jpaskaruk" and want that variable-after, you could either … | sed -n '/jpaskaruk/,/^$/p' or … | awk '/jpaskaruk/,/^$/' @drscriptt@oldbytes.space @bobjonkman@mastodon.sdf.org