tearing a file apart.

2017-09-14 Thread van Brollini
I have a file that is 323797 lines long. There are 1897 segments in it that I want to put into each their own file. For example, 1 goes from 4345 to 6744 2 goes from 6745 to 8337 3 goes from 8338 to 9326 etc etc. I have a search results file that has the line numbers needed for each segment. w

Re: tearing a file apart.

2017-09-15 Thread Craig Hagerman
I'm not sure if this is possible with BBEdit or not. I would use terminal commands or do it programmatically. I you want to split a file into evenly spaced lines you could use the `split` command from the terminal. Alternately it would only be a small number of lines in Python (or Perl, or Ruby