Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AWK95 (Windows) Current Date

Status
Not open for further replies.

ediman4902

Programmer
Jun 19, 2007
6
US
I'm trying to pass the current date into an AWK95 program in a Windows based environment and when I try to put it into the command line as a variable it is failing.

Is there a way to get current date/time into a AWK95 program?

Thank you............Larry
 
I'm not sure exactly what 'awk95' is... if it is a copy of GNU awk you can use built-in functions, e.g.

Code:
C:\>gawk 'BEGIN {print strftime("%d/%m/%y",systime())}'
05/05/08

C:\>

Annihilannic.
 
Hi

No, sadly [tt]awk95[/tt] is a native Windows implementation of [tt]awk[/tt]. It is almost standard compliant, but I found some misses in its regular expression handling. So no, it has nothing from the GNU enhancements.

Sadly again, the well known site for [tt]awk95[/tt] download was closed. And I found not alternative download site. While I left without [tt]awk95[/tt], seems I will never help in such questions.

Larry, I suggest to install CygWin. That way you will have [tt]gawk[/tt], then see Annihilannic's reply. ( Excepting the quoting... )

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top