Apple Script for copying a "part" from one txt file to a new txt file
I have a txt file which has data written in a particular format as below:
<MyTag>random data 1<\MyTag><MyTag>random data 2<\MyTag><MyTag>random data n<\MyTag>
My requirement is to copy the data within each tags to a separate file . eg: File1 should have <MyTag>random data 1<\MyTag>, File2 should have <MyTag>random data 2<\MyTag> and so on.
Please help..!!