AWK in 4.X different from 5.X?
Jonathan Chen
jonc at chen.org.nz
Sun Mar 27 14:37:57 PST 2005
On Sun, Mar 27, 2005 at 12:09:03PM -0500, Francisco Reyes wrote:
> 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}'
How about:
date +"#%a %b - %d - %Y"
--
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
More information about the freebsd-questions
mailing list