Search Results

Search: Posts Made By: grinds
11,575
Posted By era
And apart from the fact that you need to double...
And apart from the fact that you need to double the equals sign in the condition, does it work?
5,536
Posted By baruchgu
awk is best for such cases
Do something like this:

awk '/Automatic Recharge Audit Process Finished Correctly/ { \
print pre2 ; print pre1 ;print ;getline ;print ;next}\
{ pre1=$0; pre2=pre1}' /sn/log/OM* > ARe.out
Showing results 1 to 2 of 2

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