![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to sort a field in a file having date values | risshanth | Shell Programming and Scripting | 4 | 06-04-2008 02:03 AM |
| date issue-find prevoius date in a patricular format | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 11-15-2007 04:42 PM |
| convert mmddyy date format to ccyyddd format?? | Bhups | Shell Programming and Scripting | 2 | 09-27-2006 08:30 PM |
| Inserting Values From A File Into A Table | ragha81 | Shell Programming and Scripting | 2 | 09-16-2006 04:10 PM |
| Inserting Date&Time Stamp In Existing Log File | shephardfamily | UNIX for Dummies Questions & Answers | 3 | 02-24-2006 12:01 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
here is my script
------------------------------------------------------ TZ=`date +%Z`+24 ;a=`date +%Y-%m-%d` b=`date +"23:%M:%S"` cd /ednadtu3/u01/pipe/logs for i in Archiver1.log do cat $i | grep $a | grep $b >> /ednadtu3/u01/pipe/naveed/Insert_Date.txt done ------------------------------------------------------------------- As this script is outputing the result in Insert_Date.txt but the problem is that file Insert_Date.txt is empty. and i do have results in Acrhiver1.log as 2008-02-03 23:10:59,345 [Thread-3] INFO - 2008-02-03 23:40:59,660 [Thread-3] INFO - -------------------------------------------------------------------- not getting why file Insert_Date.txt is empty Last edited by ali560045; 02-05-2008 at 01:55 AM. |
||||
| Google The UNIX and Linux Forums |