Based on my answer here with:
$ pkg query %t-%n | sort | awk -F"-" '{ OFS="-"; $1=strftime("%Y-%m-%d %H:%M:%S", $1); print $0 }'
strftime in awk is not documented in awk - 14.1R man page
On 14.1-RELEASE-p6 (I've cleared every "*awk" from installed packages) I have:
[1] ~ # cat...
I notice that FreeBSD's (and OpenBSD's) awk treats a repetition qualifier like "{2,4}" in a regular expression as a literal string instead of as it's documented in the manual pages. Below are some examples. The FreeBSD awk manual refers to grep to define the regular expressions it supports...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.