Search Results

Search: Posts Made By: omprasad
7,794
Posted By omprasad
Thank Ygor....It worked. It would be helpful if...
Thank Ygor....It worked.
It would be helpful if you could explain the split regular expression
7,794
Posted By omprasad
Regular expression query in AWK
I have a varable(var1) in a AWK script that contain data in the following format

[timestamp] [priority] - [log message]

I need to extract timestamp,priority and log message.I can extract these...
6,550
Posted By omprasad
That works....thanks Klashxx. But how to do the...
That works....thanks Klashxx.
But how to do the same inside a script file. I have the entire string in a variable. :confused:
25,473
Posted By omprasad
Here goes one of the solution
Step1-->"2006-05-30_13:14:04,256"--> store year, month, day, hour, min, seconds, milliseconds into seperate varables
Step2-->t1 = mktime(year" "month" "day" "hour" "min" "seconds)
Step3-->tStart =...
6,550
Posted By omprasad
Hi, The solution that have been proposed may...
Hi,
The solution that have been proposed may not solve my problem because the position of x i.e 10 in this case may not always be 5th word in the string.
Only thing that is constant here is the...
6,550
Posted By omprasad
Regular expression query in AWK
Hi,
I have a string like this-->"After Executing service For 10 Request"
in this string i need to extract "10".
the contents of the string is variable and "10" appears before "For" and after...
25,473
Posted By omprasad
How to find date Difference in AWK/GAWK with millisecond precision
Hi,
I have a log file that has the date in this format "2006-05-30_13:14:04,256". I need to find the time difference between two log entries in milliseconds.
How to achieve this in AWK/GAWK...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 05:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy