Search Results

Search: Posts Made By: oberoi1403
2,921
Posted By oberoi1403
No, its not working.. I tested wrong. I get the...
No, its not working.. I tested wrong. I get the below error

sed: 0602-419 Cannot find or open file 04-Mar-2015.
2,921
Posted By oberoi1403
Double quotes
No its not working . I am getting the same error

---------- Post updated at 08:42 AM ---------- Previous update was at 08:24 AM ----------



I tested that wrong.. sorry.. I am still getting...
2,921
Posted By oberoi1403
sed command issue in script
Hi,

I am using sed command to extract data from my log file for a certain time interval. From and To "time" are my input arguments.
Now if i use the sed command on command line. I get the desired...
2,289
Posted By oberoi1403
Many Thanks Scrutinizer.<br>I have a log file...
Many Thanks Scrutinizer.<br>I have a log file which consists of date in this format


##<01-Mar-2015 03:48:18 o'clock GMT> <info> ##<01-Mar-2015 03:48:20 o'clock GMT> <info> ##<01-Mar-2015...
2,289
Posted By oberoi1403
awk: 0602-562 Field $(####<04-Mar-2015 11:10:45...
awk: 0602-562 Field $(####<04-Mar-2015 11:10:45 o'clock GMT>-15min) is not correct.
The input line number is 1. The file is test.log.
The source line number is 1.


I am getting the pasted...
2,289
Posted By oberoi1403
yup.. it works fine echo `date -u...
yup.. it works fine

echo `date -u +"####<%d-%b-%Y %H:%M:%S o'clock GMT>`
####<04-Mar-2015 10:56:02 o'clock GMT>
2,289
Posted By oberoi1403
Error while extracting data from log file
I am running awk command to extract data from log file to calculate last 15 minutes log using below command and now i am getting bellow error:
awk '$0>=$from' from=$(`date -u +"####<%d-%b-%Y...
3,642
Posted By oberoi1403
I tried the below command but doesn't work for...
I tried the below command but doesn't work for meawk '$0>=$from' from=$(`date -u +"####<%d-%b-%Y %H:%M:%S o'clock GMT>" -d -15min`) test.log | grep -m1 -C5 'WORD'

Please wrap all code, files,...
3,642
Posted By oberoi1403
Extract data from log
I have logs in format
####<01-Mar-2015 03:48:18 o'clock GMT> <info>
####<01-Mar-2015 03:48:20 o'clock GMT> <info>
####<01-Mar-2015 03:48:30 o'clock GMT> <info>
####<01-Mar-2015 03:48:39...
Showing results 1 to 9 of 9

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