@jamey or
("date +%s" | getline); print ($0 - mean) / 86400
worked for me if you want to keep it in awk 😂
(macOS uses a fork of "The One True AWK”, not GNU awk, by default so the question isn’t purely hypothetical)
@Lady that's a delightful option too! I just take way too much pleasure in metaprogramming things that weren't meant to be metaprogrammed. 😅 and yeah, I assumed you were asking due to being on one of the BSD-ish platforms, which is a totally reasonable constraint
@Lady there's always the approach of sticking
'$(date +%s)'
there instead 😁