AWK in 4.X different from 5.X?

Francisco Reyes lists at natserv.com
Sun Mar 27 09:05:29 PST 2005


On Sun, 27 Mar 2005, Mario Hoerich wrote:

>> Now I just wonder how to get date in my output. :-(
>
> Well, if nothing else helps there's always system("date").
> However, you could also install lang/gawk.

Since this was from a shell script I did
date | awk '{print "#"$1 " " $2 "-" $3 "-" $6}'

It works for my needs.


More information about the freebsd-questions mailing list