![]() |
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 for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare date from db2 table to yesterday's Unix system date | sasaliasim | Shell Programming and Scripting | 9 | 12-01-2008 11:37 PM |
| Change System Date | Ricole | AIX | 1 | 07-26-2006 10:29 PM |
| I want to get day from the current system date | gopskrish | UNIX for Dummies Questions & Answers | 2 | 06-24-2005 09:52 AM |
| system date | Prafulla | UNIX for Dummies Questions & Answers | 1 | 02-01-2002 06:42 AM |
| file date vs. system date | ober5861 | UNIX for Dummies Questions & Answers | 8 | 09-11-2001 02:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi,
I'm getting some issues while running below awk:- I want to use the system date to get pritned on the report but not getting it please help in this case BEGIN { sysdate = substr($date,5,6) print "WEA\t\t\t\t\t\t\t\t\t\tCLAIM AND APPROVAL REPORT" print "REPORT RUN DATE:",$sysdate print "\t\t\t\t\t\t\t\t\tThere are no No Charge ARA's to be Claimed and Approved today" } END Thanks |
|
||||
|
Try this...
Code:
BEGIN
{
"date +%d-%b-%Y" | getline d ;
print "WEA\t\t\t\t\t\t\t\t\t\tCLAIM AND APPROVAL REPORT";
print "REPORT RUN DATE: ",d;
print "\t\t\t\t\t\t\t\t\tThere are no No Charge ARA's to be Claimed and Approved today" ;
close("date");
}
END
|
![]() |
| Bookmarks |
| Tags |
| awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|