Community
    • Login

    Extract specific lines from a VERY large text file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 600 Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors