On Wed, Oct 20, 2021 at 08:39:58PM +0200, Ævar Arnfjörð Bjarmason wrote: > get_synopsis () { > + head -n 10 "Documentation/$1.txt" | > sed -n ' > /^NAME/,/'"$1"'/H > ${ > x > s/.*'"$1"' - \(.*\)/N_("\1")/ > p > - }' "Documentation/$1.txt" > + }' > } By the way, I'm not sure about the utility of this change. It reduces the number of lines that sed looks at, but at the cost of an extra process. That's probably a net loss. And if we did want to limit the data sed covers, doing "pq" after we matched would be simpler. It also feels like it's orthogonal to what this patch is doing, but maybe there's some subtle non-performance reason to want this. -Peff