Search Results

Search: Posts Made By: rbadveti
9,387
Posted By rbadveti
Hi RudiC, Thanks for the explanation - you...
Hi RudiC,

Thanks for the explanation - you made it really simple.

Is it possible to delete the server_n log line which does not contain the log prints ?
in the above example it is server_2 and...
9,387
Posted By rbadveti
Truly amazing :) Thank you so much for making...
Truly amazing :) Thank you so much for making life simple - ha ha.

Would you mind explaining ?
9,387
Posted By rbadveti
Hi RudiC, I have used the perl regex to...
Hi RudiC,

I have used the perl regex to avoid the colored output.

Yes, I would need the server_n output as well.
The logs will be only for a single server and on sorting i need the information...
9,387
Posted By rbadveti
Hi RudiC, The variable is assigned with the...
Hi RudiC,

The variable is assigned with the date+time of the first line from the text file which contains the content redirected using zgrep.

example:
sample.gz:2016-09-14 01:09:56,796...
9,387
Posted By rbadveti
I with help of wolfmilkporc found a way to remove...
I with help of wolfmilkporc found a way to remove the control color codes.


first_line_date_time=$(echo $first_line_date_time | perl -pe 's/\e\[[\d;]*m//g;')
...
9,387
Posted By rbadveti
Great, so any clue on how do i get out of this ?
Great, so any clue on how do i get out of this ?
9,387
Posted By rbadveti
As per greet_sed changed sed expression to double...
As per greet_sed changed sed expression to double quotes and output is below - NOK
Change is observed in the time stamp - space is highlighted:

+ ssh -q -o 'StrictHostKeyChecking no' deb011 'cd...
9,387
Posted By rbadveti
Hi RudiC, Thanks for the reply. ...
Hi RudiC,

Thanks for the reply.

Regarding point 2 - it is just a typo error which i have corrected in this question.

The below commands when executed gives the followed result with -vx...
9,387
Posted By rbadveti
Hi greet_sed, Thanks for the reply. I...
Hi greet_sed,

Thanks for the reply.

I have tried like you mentioned but does not print any output:
without zcat:
zgrep -A10 -i "Do action on cell BLA330" sample.gz | sed -rne '/2016-09-14...
9,387
Posted By rbadveti
Hi RudiC, Thanks for quick reply and correcting...
Hi RudiC, Thanks for quick reply and correcting the code format.

- Space in assignment of variable was a typo error, I have corrected it now. The variables given are only for providing more...
9,387
Posted By rbadveti
Hi RudiC, Thanks for quick reply and correcting...
Hi RudiC, Thanks for quick reply and correcting the code format.

- Space in assignment of variable was a typo error, I have corrected it now. The variables given are only for providing more...
9,387
Posted By rbadveti
Sed: -e expression #1, char 16: unterminated address regex
I am trying to grep for a particular text (Do action on cell BL330) in a text file(sample.gz) which is searched in the content filtered by date+timestamp (2016-09-14 01:09:56,796 to 2016-09-15...
Showing results 1 to 12 of 12

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