I have a file as below.
***ABC***
Line1*
L*ine2*
***DEF***
Line3*
Lin*e4*
I need to create the 2 files ABC and DEF with the data below:
ABC.dat:
Line1*
L*ine2*
DEF.dat:
Line3*
Lin*e4*
I am ok to generate the file using small shell script as well.
*you were using since they were confusing the formatting. Are the*part of the file? How can we know which lines are the headers (the file names) and which the content? I mean, what's the difference betweenABCandLine1? Is it every 3rd line? Is it lines with ALL CAPS? Please edit your question and clarify.***will be the target file name?