whatisthis987
IS-IT--Management
Hi,
I have a file that looks like this:
Par1
sdfsdff c 568768
dfdfdfdty6v 655
dfdsdfd 1243
END1abcd
Par2
tyrtyrfghgfh
rtytrfg gffg
gfhjkk dffg
END2abcd
I would like to write a TCL script to split what's between Par and END into seperate files. For example,
::File Par1.txt::
Par1
sdfsdff c 568768
dfdfdfdty6v 655
dfdsdfd 1243
END1abcd
::File Par2.txt::
Par2
tyrtyrfghgfh
rtytrfg gffg
gfhjkk dffg
END2abcd
Could anyone please help?
I have a file that looks like this:
Par1
sdfsdff c 568768
dfdfdfdty6v 655
dfdsdfd 1243
END1abcd
Par2
tyrtyrfghgfh
rtytrfg gffg
gfhjkk dffg
END2abcd
I would like to write a TCL script to split what's between Par and END into seperate files. For example,
::File Par1.txt::
Par1
sdfsdff c 568768
dfdfdfdty6v 655
dfdsdfd 1243
END1abcd
::File Par2.txt::
Par2
tyrtyrfghgfh
rtytrfg gffg
gfhjkk dffg
END2abcd
Could anyone please help?