Oct 19, 2005 #2 feherke Programmer Aug 5, 2002 9,540 RO Hi What ? Code: awk 'BEGIN { print strftime("%c") }' Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Oct 19, 2005 #3 PHV MIS Nov 8, 2002 53,708 FR strftime is a GNU extension. One more concentional way: awk 'BEGIN{"date"|getline;print}' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
strftime is a GNU extension. One more concentional way: awk 'BEGIN{"date"|getline;print}' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Oct 19, 2005 Thread starter #4 sabetik IS-IT--Management Nov 16, 2003 80 GU How can use in printf function: printf ("date:, strftime(%c), \n") > "test.xls" getting error message. thanks again Upvote 0 Downvote
How can use in printf function: printf ("date:, strftime(%c), \n") > "test.xls" getting error message. thanks again
Oct 19, 2005 #5 PHV MIS Nov 8, 2002 53,708 FR You wanted this ? awk 'BEGIN{printf("date: %s\n",strftime("%c"))}' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
You wanted this ? awk 'BEGIN{printf("date: %s\n",strftime("%c"))}' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Oct 19, 2005 #6 marsd IS-IT--Management Apr 25, 2001 2,218 US Code: gawk ' BEGIN {printf("Date: %s\n",strftime("%c"))}' OR- awk ' BEGIN {"date +%c" | getline out ;printf("Date: %s\n",out);}' And really..shouldn't everyone who can be using gawk by now? Upvote 0 Downvote
Code: gawk ' BEGIN {printf("Date: %s\n",strftime("%c"))}' OR- awk ' BEGIN {"date +%c" | getline out ;printf("Date: %s\n",out);}' And really..shouldn't everyone who can be using gawk by now?