How to split file by tags inside file?
How can I split the file by the tags that are inside the file???
Not too sure how to use cut and/or awk to do this.
Thanks
spooky
file.txt
------
<filename>output.txt</filename>
Line 1 of 5
<filename>output1.txt</filename>
Line 2 of 5
Line 3 of 5
<filename>output2.txt</filename>
Line 4 of 5
Line 5 of 5
has created 3 files with there relevant data. I.e. ;
output.txt
----------
Line 1 of 5
output1.txt
-----------
Line 2 of 5
Line 3 of 5
output2.txt
-----------
Line 4 of 5
Line 5 of 5
|