Search Results

Search: Posts Made By: ravi
3,851
Posted By RudiC
Please answer ALL questions.
Please answer ALL questions.
3,851
Posted By RudiC
That cron job looks suspect. Do you really want...
That cron job looks suspect. Do you really want it to trun every minute? Do you really need to redirect stdout twice? Do you receive an error mail?


And, the redirection in daslog.sh will...
3,851
Posted By RudiC
man paste: HOW did you resolve the issue?
man paste:


HOW did you resolve the issue?
3,851
Posted By RudiC
That IS the complete code, running with your...
That IS the complete code, running with your input sample. Did you replace "file" with your input file name?
3,851
Posted By RudiC
It has been tested with your input sample: grep...
It has been tested with your input sample:
grep -E "<(timestamp|severity|message)" file | paste -sd"\t\t\n" | grep -E "ERROR.*thumbnail" | tr '\t' '\n'
...
3,851
Posted By RudiC
With your amended spec, try also grep -E...
With your amended spec, try also
grep -E "<(timestamp|severity|message)" file | paste -sd"\t\t\n" | grep -E "ERROR.*thumbnail" | tr '\t' '\n'
3,851
Posted By RavinderSingh13
Hello ravi, 2 things here. 1- For...
Hello ravi,

2 things here.

1- For thanking any person for any useful post(s) you could HIT thanks button at bottom left corner of each post :b:
2- For your question; you have to provide...
3,851
Posted By nezabudka
awk ' /ERROR/ {print prev ORS...
awk '
/ERROR/ {print prev ORS $0; flag=1}
/message/ && flag {print; flag=0}
{prev = $0}
' file > out.log
3,851
Posted By RavinderSingh13
Hello ravi, Could you please try following...
Hello ravi,

Could you please try following once.

awk -F"[><]" '
/\/log-message/{
if(value){
print value
}
value=""
next
}
/timestamp/{
value="timestamp="$3
next
}...
Showing results 1 to 9 of 9

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