I have notice two points in your so called ugly code
1
o/p now looks like
first GC started at 10:25:01 00:02:02 and continued for 15 mins
second GC started at 17:31:01 10:28:01 and continued for 17 mins
third GC started at 17:44:01 17:34:01 and continued for 16 mins
extra bold time poping up and no minus of 3 is really happening here.
2
while subtracting 3mins from the time we should consider actual time line
e.g. here the min is greater than 3, so no issue what so ever
but what if the time said 00:02:02 , so minusing 3 would be 11:59:02
I tried to modify the bit
This what I'm looking for but not the -1 bit in first line, it should say 59.
Last edited by manas_ranjan; 10-05-2012 at 12:16 PM..
I LOVE moving targets. As you point out yourself, you would need to implement full blown date & time arithmetics to really solve your problem. This I have NOT done but left it for your exercise. At least, for your sample data, this should work:
As I said, no day nor hours span taken care of...
Hi All,
need help...
I have some log below : ### {"request_id":"e8395eb0-a8bd-11e9-b77b-d507ea5312aa","message":"when inquiry paybill 628524871 prevalidation cause : Invalid Transaction"}
### {"request_id":"043f2310-a8be-11e9-b57b-f9c7344998d7","message":"when inquiry paybill 62821615... (2 Replies)
there are around 676 files in a directory and I want to batch every 10 and then remaining 7 files as well for a batch pressing job simultaneously.
I'm trying to pick-up every 10 counter'd files -- batch these files and then move on with the next batch.. after resetting the Counters back to 0;
... (5 Replies)
I have this Requirement where i have to group the files,
I have a folder say "temp" where many files resides...files are like this;
010020001_S-ABC-Sort-DEFAW_YYYYMMDD_HHMMSS.txt
010020004_S-PQR-Sort-DRTON_YYYYMMDD_HHMMSS.txt
010020009_S-JKL-Sort_MNOLO_YYYYMMDD_HHMMSS.txt... (8 Replies)
hello,
File 1
main Group sub group
MIT VAR_1D_DATA_TYPE 23-03-2012
MIT VAR_1D_DATA_TYPE 22-03-2012
MIT VAR_10D_DATA_TYPE 23-03-2012
MIT VAR_10D_DATA_TYPE 22-03-2012
MIT ... (0 Replies)
I have a list of fils stored insortedLst, and want to select certain fields to group specific files together:
Example of the files would be as below:
n02-z30-dsr65-ndelt0.25-varp0.002-16x12drw-run1.log
n02-z30-dsr65-ndelt0.25-varp0.002-16x12drw-run2.log... (2 Replies)
I do have a tab delimited file of the following format
a_1 rt
a_1 st_2
a_1 st_3
a_2 bt_2
a_2 st_er
b_2 st_2
b_2 st_32
S_1 rt_8
S_1 rt_64
I want to cut short the above file and group the file based on the first column like below.
a_1 rt st_2 st_3
a_2 bt_2 st_er
b_2 st_2... (1 Reply)
Please help me to find out maximum value of a field based on grouping of other fields, as we do in SQL.
Like in SQL if we are having below records :
Client_Name Associate_Name Date1 Value
C1111 A1111 2012-01-17 10
C1111 A1111 ... (1 Reply)
I have a file, which is really large but i shortened it:
A3059GVS 1 A 01 Plate_1 40 25.37016 14.6298
A3059GVS 2 A 01 Plate_2 40 26.642002 13.3583
A3059GVS 3 A 02 Plate_1 40 25.381462 ... (4 Replies)
Hi all,
I have a problem where i have several files in a directory which I SCP from a server to my local machine and i would like to periodically tar/gzip them based on their naming convention.
Here is the scenario:
I SCP files (which all end with the same ending) periodically across to a... (3 Replies)