Breaking one text file to multiple files.
-
I have text file with direct image links (25,000 lines on links) seperated with (1)
Here Example: first 40 links
https://d1a0n9gptf7ayu.cloudfront.net/photos/7399d8f60bf.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/037af7f389b.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/d5a4cd86755.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/4d49e3b2b10.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/7c39210cc7c.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/73cf22940a0.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/35cf192d74d.jpg
.
.
.
.
(40 Hits)
https://d1a0n9gptf7ayu.cloudfront.net/photos/7399d8f60bf.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/037af7f389b.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/d5a4cd86755.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/4d49e3b2b10.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/7c39210cc7c.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/73cf22940a0.jpg
https://d1a0n9gptf7ayu.cloudfront.net/photos/35cf192d74d.jpg
.
.
.
.
.
(58 Hits)
and goes on upto 25000 lines. 40 to 60 links separated with (x Hits) text.
First 40 links from one gallery
another 58 links from another gallery.I want to save those cluster of lines seperated with ( X Hits) in different text files.
that would be around 500 files. there are 500 galleries in file. with average 50 files. -
What have you tried so far?