Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 12:09:03 -0500 (EST)
From:      Francisco Reyes <lists@natserv.com>
To:        Mario Hoerich <lists@MHoerich.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: AWK in 4.X different from 5.X?
Message-ID:  <20050327120743.Y26666@zoraida.natserv.net>
In-Reply-To: <20050327143258.GA88210@Pandora.MHoerich.de>
References:  <20050326125154.Y49808@zoraida.natserv.net> <20050326142338.D50621@zoraida.natserv.net> <20050327143258.GA88210@Pandora.MHoerich.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050327120743.Y26666>