![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| print all dates 100 days from current date | pavan_test | UNIX for Dummies Questions & Answers | 5 | 07-20-2009 09:25 PM |
| awk to print current date? | philipz | UNIX for Dummies Questions & Answers | 3 | 09-02-2008 03:58 PM |
| how to print date using ftp commands | kittusri9 | Shell Programming and Scripting | 3 | 05-07-2008 03:48 AM |
| how to print the date and time separately??? | jisha | Shell Programming and Scripting | 8 | 01-16-2008 06:23 AM |
| Need to print file names in a certain date range using ls | Shamwari | UNIX for Dummies Questions & Answers | 2 | 10-08-2001 07:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Print date at END clause of AWK
Hi to all! I 'm new in unix programing so... may be I decided a wrong tool to solve the problem but anyway... all road goes to rome jajaja.
My question is: There is any way to print date at the END clause of an AWK script. I mean, I'm writing a tool with AWK and the results are redirected to a file. Some thing like: BEGIN{ "date" |getline;} These lines works "sweetly" at the BEGIN clause... but it doesn't at the END clause. I'm working on a HP-UX (unknow version )I know that this is not actually a big challenge (jajaja) but I googled as much I could without results. How could I log the end of the AWK script execution? Thanks matrixmadhan for you support ![]() F |
|
||||
|
Quote:
Actually, works like you said, but you are storing the date at the beging of the script execution. I need the date/time when the script ends. Thanks for your reply F |
|
||||
|
Quote:
It works! Thank you very much dude! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|