The following command on my Mac (10.6) gives me an undefined function error:
$ awk 'BEGIN{now=strftime("%D", systime()); print now}'
awk: calling undefined function strftime
source line number 1
On a Red Hat system, I get the expected result:
$ awk 'BEGIN{now=strftime("%D", systime()); print now}'
12/01/09
What's the deal here?
Use Homebrew and then just run brew install gawk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With