Sign in to follow this  
Followers 0
masvil

Lines cut & paste

1 post in this topic

I have 2 text file.

file 1:

(line1)BEGIN: bla bla

(line2) bla bla bla

(line3)END

(line4)

(line5)BEGIN: bla bla bla

(line6)bla bla

(line7)bla bla bla bla

(line8)END

(line9)

(line10)BEGIN: this part of log

(line11)is not finished yet

(line12)so leave it here

file 2 is empty

After a script (that I'm trying to write without any good result) they should have to be so:

file 1:

(line1)BEGIN: this part of log

(line2)is not finished yet

(line3)so leave it here

file 2:

(line1)BEGIN: bla bla

(line2) bla bla bla

(line3)END

(line4)

(line5)BEGIN: bla bla bla

(line6)bla bla

(line7)bla bla bla bla

(line8)END

(line9)

I hope I was clear. Any help?

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0