Contents of t1.log file
Number of records processed: [0]
Number of records rejected: [100]
Error : [ 1024 : SQL [
xyz ..........
abc ..........
aaa _]
start time : [ ]
end time : [ ]
Please let me know how i can remove the contents highlighted in red in the t1.log file.
awk 'f{s=1} /Error/{f=1} s!=1{print} /]/{s=0;f=0}' t1.log
Number of records processed: [0]
Number of records rejected: [100]
Error : [ 1024 : SQL [
start time : [ ]
end time : [ ]