Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Breaking one text file to multiple files.

    Help wanted · · · – – – · · ·
    2
    2
    41
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R k
      R k last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • dail
        dail last edited by

        What have you tried so far?

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors