Extracting block of text from log file
I have a log file and want to extract all blocks of text that start with START and ends with END. Each block is 5 lines.
Code:
--- START Code:
grep -A 5 "--- START" file Thanks & Regards |
Use sed - you can use the START and END as address range delimeters.
For simple requirements does the job fine. |
All times are GMT -5. The time now is 11:43 PM. |