Hi, everyone
The input file pattern is like below:
Begin Object1
txt1
end
;
Begin Object2
txt2
end
;
...
I want to parse this one file into Object1.txt, Obeject2.txt... each contains one statement from 'Begin' to ';' , e.g. object1.txt contains:
Begin object1
txt1
end
;
---------------------------
Any thoughts?
also, Questions
1. any AWK or
SED can search for a pattern across many lines?
2. how can I output many files?
3. Shall I move this thread to "Shell Programming and Scripting"?
Thank you in advance
