Community

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

    Extract specific lines from a VERY large text file

    Help wanted · · · – – – · · ·
    1
    2
    58
    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 Cranmer
      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 Cranmer
        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
        Copyright © 2014 NodeBB Forums | Contributors