Community
    • Login

    Extract specific lines from a VERY large text file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 1.1k Views 1 Watching
    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.
    • John CranmerJ Offline
      John Cranmer
      last edited by John Cranmer

      I use Proshow to create slide shows from photograpgs. The file that Proshow creates is a just plain text file but very large. The one I am working on at the moment has about 1.2 million line of text a small part is shown below

      cell[331].customTransition.transId=2
      cell[331].customTransition.includeGlobalCaptions=1
      cell[332].imageEnable=1
      cell[332].nrOfImages=1
      cell[332].images[0].image=image/Flower 9283p copy.jpg
      cell[332].images[0].imageEnable=1
      cell[332].images[0].name=Flower 9283p copy

      What I would like to be able to do is to extract a list of all the images files used in their correct order. The lines I want all have this format

      cell[###].images[0].image=image/xxxxxxxx.jpg

      where xxxxxxx is the actual file name as above and will vary as will ###. In all this show used 356 images. I was looking at how to isolate all lines containing the string .image=image/ and write them to a new file or delete all the lines that do not contain this string.

      So two questions

      1. How can I extract all 356 lines from this master file and remove the rest

      2. Wouldl the extraction routine run in a reasonable time given the size of the original file.

      Any help suggestions as to how to go about this would be most welcome.

      John

      1 Reply Last reply Reply Quote 0
      • John CranmerJ Offline
        John Cranmer
        last edited by

        Sorry to have asked I have just found it is very easy to do with the search all function and then cut and paste the results

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors