I've got some big text log files. The content is like:
Begin to work
Load library
Start
TEXTLOG
Checking
ok
TEXTLOG
Start process
Starting node
ok
TEXTLOG
Stop node
TEXTLOG
In this file the lines "TEXTLOG" serves as delimeter, so I wish to split this file into several smaller files, using "TEXTLOG" as EOF indicator, so I should files:
file1:
Begin to work
Load library
Start
file2:
Checking
ok
file3:
Start process
Starting node
ok
file4:
Stop node
How can I achieve this using shell? Thanks.