sed doesn't support the same PCRE regex ack or ag
cat file | perl -ne 'print if s/(\w+) (\d+)/\1 is \2 years old/'
My only point is sometimes old school standard tools are plenty.1: https://www.gnu.org/software/sed/manual/sed.html#Extended-re...
But when I saw mVChr's sed line, and then again the perl line, I was reminded "Oh, right, old school." And I wondered for the Nth time how much of old school has been unknowingly reinvented, and how many times.
Nevertheless, I like the new(er) tools in this thread too.